mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 19:01:13 +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
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:
@@ -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