mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +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
This commit is contained in:
committed by
Jacek Jendrzej
parent
9be5730183
commit
4dbeb3a31e
@@ -352,7 +352,7 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
|
||||
break;
|
||||
|
||||
case NeutrinoMessages::EVT_SCAN_NUM_TRANSPONDERS:
|
||||
sprintf(buffer, "%d", data);
|
||||
sprintf(buffer, "%u", data);
|
||||
paintLine(xpos2, ypos_transponder, w - (8*fw), buffer);
|
||||
total = data;
|
||||
snprintf(str, sizeof(buffer), "scan: %d/%d", done, total);
|
||||
@@ -398,22 +398,22 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
|
||||
break;
|
||||
|
||||
case NeutrinoMessages::EVT_SCAN_NUM_CHANNELS:
|
||||
sprintf(buffer, " = %d", data);
|
||||
sprintf(buffer, " = %u", data);
|
||||
paintLine(xpos1 + 3 * (6*fw), ypos_service_numbers + mheight, width - 3 * (6*fw) - 10, buffer);
|
||||
break;
|
||||
|
||||
case NeutrinoMessages::EVT_SCAN_FOUND_TV_CHAN:
|
||||
sprintf(buffer, "%d", data);
|
||||
sprintf(buffer, "%u", data);
|
||||
paintLine(xpos1, ypos_service_numbers + mheight, (6*fw), buffer);
|
||||
break;
|
||||
|
||||
case NeutrinoMessages::EVT_SCAN_FOUND_RADIO_CHAN:
|
||||
sprintf(buffer, "%d", data);
|
||||
sprintf(buffer, "%u", data);
|
||||
paintLine(xpos1 + (6*fw), ypos_service_numbers + mheight, (6*fw), buffer);
|
||||
break;
|
||||
|
||||
case NeutrinoMessages::EVT_SCAN_FOUND_DATA_CHAN:
|
||||
sprintf(buffer, "%d", data);
|
||||
sprintf(buffer, "%u", data);
|
||||
paintLine(xpos1 + 2 * (6*fw), ypos_service_numbers + mheight, (6*fw), buffer);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user