mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
neutrino: fix 32<->64bit format string warnings
use portable C99 format string macros for 64bit types to fix many warnings when compiling for 64bit architectures, add some (int) casts for size_t
This commit is contained in:
committed by
Jacek Jendrzej
parent
9be5730183
commit
4dbeb3a31e
@@ -2,15 +2,7 @@
|
||||
Neutrino-GUI - DBoxII-Project
|
||||
|
||||
Copyright (C) 2001 Steffen Hehn 'McClean'
|
||||
Homepage: http://dbox.cyberphoria.org/
|
||||
|
||||
Kommentar:
|
||||
|
||||
Diese GUI wurde von Grund auf neu programmiert und sollte nun vom
|
||||
Aufbau und auch den Ausbaumoeglichkeiten gut aussehen. Neutrino basiert
|
||||
auf der Client-Server Idee, diese GUI ist also von der direkten DBox-
|
||||
Steuerung getrennt. Diese wird dann von Daemons uebernommen.
|
||||
|
||||
Copyright (C) 2010-2012 Stefan Seyfried
|
||||
|
||||
License: GPL
|
||||
|
||||
@@ -227,7 +219,7 @@ int CHDDMenuHandler::doMenu ()
|
||||
|
||||
bool enabled = !CNeutrinoApp::getInstance()->recordingstatus && !removable && !isroot;
|
||||
|
||||
snprintf(str, sizeof(str), "%s %s %lld %s", vendor, model, megabytes < 10000 ? megabytes : megabytes/1000, megabytes < 10000 ? "MB" : "GB");
|
||||
snprintf(str, sizeof(str), "%s %s %ld %s", vendor, model, (long)(megabytes < 10000 ? megabytes : megabytes/1000), megabytes < 10000 ? "MB" : "GB");
|
||||
printf("HDD: %s\n", str);
|
||||
tmp_str[i]=str;
|
||||
tempMenu[i] = new CMenuWidget(str, NEUTRINO_ICON_SETTINGS);
|
||||
|
Reference in New Issue
Block a user