From f981ea93fb411019133a022c7dd873166d66b5dd Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 5 Dec 2005 22:44:42 +0000 Subject: kill gcc4 warnings git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8162 a1c6a512-1295-4272-9138-f99709370657 --- apps/main_menu.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'apps/main_menu.c') 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(); -- cgit v1.1