mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +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:
@@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -fno-rtti -fno-exceptions
|
||||
AM_CPPFLAGS = -fno-rtti -fno-exceptions -D__STDC_FORMAT_MACROS
|
||||
|
||||
INCLUDES = \
|
||||
-I$(top_builddir) \
|
||||
|
@@ -1395,7 +1395,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh) {
|
||||
else if (hh->ParamList["eventid"] != "") {
|
||||
//special epg query
|
||||
uint64_t epgid;
|
||||
sscanf(hh->ParamList["eventid"].c_str(), "%llu", &epgid);
|
||||
sscanf(hh->ParamList["eventid"].c_str(), "%" SCNu64 "", &epgid);
|
||||
CShortEPGData epg;
|
||||
if (CEitManager::getInstance()->getEPGidShort(epgid, &epg)) {
|
||||
hh->WriteLn(epg.title);
|
||||
@@ -1407,7 +1407,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh) {
|
||||
if (hh->ParamList["starttime"] != "") {
|
||||
uint64_t epgid;
|
||||
time_t starttime;
|
||||
sscanf(hh->ParamList["fskid"].c_str(), "%llu", &epgid);
|
||||
sscanf(hh->ParamList["fskid"].c_str(), "%" SCNu64 "", &epgid);
|
||||
sscanf(hh->ParamList["starttime"].c_str(), "%lu", &starttime);
|
||||
CEPGData longepg;
|
||||
if (CEitManager::getInstance()->getEPGid(epgid, starttime, &longepg)) {
|
||||
|
Reference in New Issue
Block a user