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


Origin commit data
------------------
Branch: ni/coolstream
Commit: e0acbd3ddb
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-11-03 (Sat, 03 Nov 2012)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-11-03 13:56:26 +01:00
parent 75d1430caa
commit a7d632a19a
41 changed files with 208 additions and 233 deletions

View File

@@ -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)) {