fix warnings if some want to use c++11

This commit is contained in:
[CST] Focus
2014-04-17 11:15:51 +04:00
parent ebf37fd192
commit c78676f7fd
8 changed files with 16 additions and 16 deletions

View File

@@ -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;
}

View File

@@ -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());

View File

@@ -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());