diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-12-05 22:44:42 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-12-05 22:44:42 +0000 |
| commit | f981ea93fb411019133a022c7dd873166d66b5dd (patch) | |
| tree | 4f671d67b6584068d4e388c5fd4b6cdd54b5cca2 /apps/main_menu.c | |
| parent | 5c3546ccbb14b576fd5eef3815bdfc97047de422 (diff) | |
| download | rockbox-f981ea93fb411019133a022c7dd873166d66b5dd.zip rockbox-f981ea93fb411019133a022c7dd873166d66b5dd.tar.gz rockbox-f981ea93fb411019133a022c7dd873166d66b5dd.tar.bz2 rockbox-f981ea93fb411019133a022c7dd873166d66b5dd.tar.xz | |
kill gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8162 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main_menu.c')
| -rw-r--r-- | apps/main_menu.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/main_menu.c b/apps/main_menu.c index 8bdb6fe..b04a91f 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -153,29 +153,29 @@ bool show_info(void) integer = buflen / 1000; decimal = buflen % 1000; #ifdef HAVE_LCD_CHARCELLS - snprintf(s, sizeof(s), str(LANG_BUFFER_STAT_PLAYER), + snprintf(s, sizeof(s), (char *)str(LANG_BUFFER_STAT_PLAYER), integer, decimal); #else - snprintf(s, sizeof(s), str(LANG_BUFFER_STAT_RECORDER), + snprintf(s, sizeof(s), (char *)str(LANG_BUFFER_STAT_RECORDER), integer, decimal); #endif - lcd_puts(0, y++, s); + lcd_puts(0, y++, (unsigned char *)s); #ifdef HAVE_CHARGE_CTRL if (charge_state == 1) - snprintf(s, sizeof(s), str(LANG_BATTERY_CHARGE)); + snprintf(s, sizeof(s), (char *)str(LANG_BATTERY_CHARGE)); else if (charge_state == 2) - snprintf(s, sizeof(s), str(LANG_BATTERY_TOPOFF_CHARGE)); + snprintf(s, sizeof(s), (char *)str(LANG_BATTERY_TOPOFF_CHARGE)); else if (charge_state == 3) - snprintf(s, sizeof(s), str(LANG_BATTERY_TRICKLE_CHARGE)); + snprintf(s, sizeof(s), (char *)str(LANG_BATTERY_TRICKLE_CHARGE)); else #endif if (battery_level() >= 0) - snprintf(s, sizeof(s), str(LANG_BATTERY_TIME), battery_level(), + snprintf(s, sizeof(s), (char *)str(LANG_BATTERY_TIME), battery_level(), battery_time() / 60, battery_time() % 60); else strncpy(s, "(n/a)", sizeof(s)); - lcd_puts(0, y++, s); + lcd_puts(0, y++, (unsigned char *)s); } if (state & 2) { @@ -188,7 +188,7 @@ bool show_info(void) output_dyn_value(s1, sizeof s1, size, kbyte_units, true); snprintf(s, sizeof s, SIZE_FMT, str(LANG_DISK_SIZE_INFO), s1); #endif - lcd_puts(0, y++, s); + lcd_puts(0, y++, (unsigned char *)s); #ifdef HAVE_MULTIVOLUME if (size2) { @@ -196,12 +196,12 @@ bool show_info(void) output_dyn_value(s2, sizeof s2, size2, kbyte_units, true); snprintf(s, sizeof s, "%s %s/%s", str(LANG_DISK_NAME_MMC), s1, s2); - lcd_puts(0, y++, s); + lcd_puts(0, y++, (unsigned char *)s); } #else output_dyn_value(s1, sizeof s1, free, kbyte_units, true); snprintf(s, sizeof s, SIZE_FMT, str(LANG_DISK_FREE_INFO), s1); - lcd_puts(0, y++, s); + lcd_puts(0, y++, (unsigned char *)s); #endif } lcd_update(); |