mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
fix warnings if some want to use c++11
Origin commit data
------------------
Commit: c78676f7fd
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-04-17 (Thu, 17 Apr 2014)
This commit is contained in:
@@ -603,6 +603,6 @@ void CMotorControl::readNetwork()
|
||||
network = "unknown";
|
||||
|
||||
char net[100];
|
||||
snprintf(net, sizeof(net), "%03d.%d, %s", abs(pos)/10, abs(pos)%10, network.c_str());
|
||||
snprintf(net, sizeof(net), "%03d.%d, %s", abs((int)pos)/10, abs((int)pos)%10, network.c_str());
|
||||
network = net;
|
||||
}
|
||||
|
@@ -466,7 +466,7 @@ bool CServiceScan::ParseFst(unsigned short pid, fast_scan_operator_t * op)
|
||||
|
||||
char pname[100];
|
||||
if (frontend->getInfo()->type == FE_QPSK)
|
||||
snprintf(pname, 100, "[%c%03d.%d] %s", satellitePosition > 0? 'E' : 'W', abs(satellitePosition)/10, abs(satellitePosition)%10, providerName.c_str());
|
||||
snprintf(pname, 100, "[%c%03d.%d] %s", satellitePosition > 0? 'E' : 'W', abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str());
|
||||
else
|
||||
snprintf(pname, 100, "%s", providerName.c_str());
|
||||
|
||||
|
@@ -412,7 +412,7 @@ bool CSdt::AddToBouquet(std::string &providerName, CZapitChannel *channel)
|
||||
char pname[100];
|
||||
if (!cable)
|
||||
snprintf(pname, 100, "[%c%03d.%d] %s", satellitePosition > 0? 'E' : 'W',
|
||||
abs(satellitePosition)/10, abs(satellitePosition)%10, providerName.c_str());
|
||||
abs((int)satellitePosition)/10, abs((int)satellitePosition)%10, providerName.c_str());
|
||||
else
|
||||
snprintf(pname, 100, "%s", providerName.c_str());
|
||||
|
||||
|
Reference in New Issue
Block a user