diff options
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r-- | apps/debug_menu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index f510597ad2..9c911eea4d 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c | |||
@@ -1247,7 +1247,8 @@ static int disk_callback(int btn, struct gui_synclist *lists) | |||
1247 | int *cardnum = (int*)lists->data; | 1247 | int *cardnum = (int*)lists->data; |
1248 | unsigned char card_name[6]; | 1248 | unsigned char card_name[6]; |
1249 | unsigned char pbuf[32]; | 1249 | unsigned char pbuf[32]; |
1250 | char *title = lists->title; | 1250 | /* Casting away const is safe; the buffer is defined as non-const. */ |
1251 | char *title = (char *)lists->title; | ||
1251 | static const unsigned char i_vmin[] = { 0, 1, 5, 10, 25, 35, 60, 100 }; | 1252 | static const unsigned char i_vmin[] = { 0, 1, 5, 10, 25, 35, 60, 100 }; |
1252 | static const unsigned char i_vmax[] = { 1, 5, 10, 25, 35, 45, 80, 200 }; | 1253 | static const unsigned char i_vmax[] = { 1, 5, 10, 25, 35, 45, 80, 200 }; |
1253 | static const unsigned char * const kbit_units[] = { "kBit/s", "MBit/s", "GBit/s" }; | 1254 | static const unsigned char * const kbit_units[] = { "kBit/s", "MBit/s", "GBit/s" }; |