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/misc.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/misc.c')
| -rw-r--r-- | apps/misc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/misc.c b/apps/misc.c index c40eac0..755eba0 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -137,11 +137,11 @@ char *create_numbered_filename(char *buffer, const char *path, { int curr_num; - if (strncasecmp(entry->d_name, prefix, prefixlen) - || strcasecmp(entry->d_name + prefixlen + numberlen, suffix)) + if (strncasecmp((char *)entry->d_name, prefix, prefixlen) + || strcasecmp((char *)entry->d_name + prefixlen + numberlen, suffix)) continue; - curr_num = atoi(entry->d_name + prefixlen); + curr_num = atoi((char *)entry->d_name + prefixlen); if (curr_num > max_num) max_num = curr_num; } @@ -591,16 +591,16 @@ int show_logo( void ) snprintf(version, sizeof(version), "Ver. %s", appsversion); lcd_setfont(FONT_SYSFIXED); - lcd_getstringsize("A", &font_w, &font_h); + lcd_getstringsize((unsigned char *)"A", &font_w, &font_h); lcd_putsxy((LCD_WIDTH/2) - ((strlen(version)*font_w)/2), - LCD_HEIGHT-font_h, version); + LCD_HEIGHT-font_h, (unsigned char *)version); lcd_update(); #ifdef HAVE_REMOTE_LCD lcd_remote_setfont(FONT_SYSFIXED); - lcd_remote_getstringsize("A", &font_w, &font_h); + lcd_remote_getstringsize((unsigned char *)"A", &font_w, &font_h); lcd_remote_putsxy((LCD_REMOTE_WIDTH/2) - ((strlen(version)*font_w)/2), - LCD_REMOTE_HEIGHT-font_h, version); + LCD_REMOTE_HEIGHT-font_h, (unsigned char *)version); lcd_remote_update(); #endif |