summaryrefslogtreecommitdiffstats
path: root/apps/bookmark.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-12-05 22:44:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-12-05 22:44:42 +0000
commitf981ea93fb411019133a022c7dd873166d66b5dd (patch)
tree4f671d67b6584068d4e388c5fd4b6cdd54b5cca2 /apps/bookmark.c
parent5c3546ccbb14b576fd5eef3815bdfc97047de422 (diff)
downloadrockbox-f981ea93fb411019133a022c7dd873166d66b5dd.tar.gz
rockbox-f981ea93fb411019133a022c7dd873166d66b5dd.tar.bz2
rockbox-f981ea93fb411019133a022c7dd873166d66b5dd.zip
kill gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8162 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/bookmark.c')
-rw-r--r--apps/bookmark.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/bookmark.c b/apps/bookmark.c
index 4ca828089f..8980e4fc26 100644
--- a/apps/bookmark.c
+++ b/apps/bookmark.c
@@ -207,14 +207,14 @@ bool bookmark_autobookmark(void)
return write_bookmark(false);
}
#ifdef HAVE_LCD_BITMAP
- char *lines[]={str(LANG_AUTO_BOOKMARK_QUERY),
- str(LANG_CONFIRM_WITH_PLAY_RECORDER),
- str(LANG_CANCEL_WITH_ANY_RECORDER)};
- struct text_message message={lines, 3};
+ unsigned char *lines[]={str(LANG_AUTO_BOOKMARK_QUERY),
+ str(LANG_CONFIRM_WITH_PLAY_RECORDER),
+ str(LANG_CANCEL_WITH_ANY_RECORDER)};
+ struct text_message message={(char **)lines, 3};
#else
- char *lines[]={str(LANG_AUTO_BOOKMARK_QUERY),
- str(LANG_RESUME_CONFIRM_PLAYER)};
- struct text_message message={lines, 2};
+ unsigned char *lines[]={str(LANG_AUTO_BOOKMARK_QUERY),
+ str(LANG_RESUME_CONFIRM_PLAYER)};
+ struct text_message message={(char **)lines, 2};
#endif
gui_syncstatusbar_draw(&statusbars, false);
if(gui_syncyesno_run(&message, NULL, NULL)==YESNO_YES)
@@ -766,7 +766,7 @@ static void display_bookmark(const char* bookmark,
dot=NULL;
if (dot)
*dot='\0';
- lcd_puts_scroll(0, 0, global_filename);
+ lcd_puts_scroll(0, 0, (unsigned char *)global_filename);
if (dot)
*dot='.';
@@ -774,12 +774,12 @@ static void display_bookmark(const char* bookmark,
snprintf(global_temp_buffer, sizeof(global_temp_buffer), "%s: %2d/%2d",
str(LANG_BOOKMARK_SELECT_BOOKMARK_TEXT),
bookmark_id + 1, bookmark_count);
- lcd_puts_scroll(0, 1, global_temp_buffer);
+ lcd_puts_scroll(0, 1, (unsigned char *)global_temp_buffer);
/* bookmark resume index */
snprintf(global_temp_buffer, sizeof(global_temp_buffer), "%s: %2d",
str(LANG_BOOKMARK_SELECT_INDEX_TEXT), resume_index+1);
- lcd_puts_scroll(0, 2, global_temp_buffer);
+ lcd_puts_scroll(0, 2, (unsigned char *)global_temp_buffer);
/* elapsed time*/
if ( ms < 3600000 )
@@ -799,7 +799,7 @@ static void display_bookmark(const char* bookmark,
ms % 3600000 / 60000,
(unsigned int)(ms % 60000) / 1000);
}
- lcd_puts_scroll(0, 3, global_temp_buffer);
+ lcd_puts_scroll(0, 3, (unsigned char *)global_temp_buffer);
/* commands */
lcd_puts_scroll(0, 4, str(LANG_BOOKMARK_SELECT_PLAY));