mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
fix warnings if some want to use c++11
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user