summaryrefslogtreecommitdiffstats
path: root/apps/gui/textarea.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/gui/textarea.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/gui/textarea.c')
-rw-r--r--apps/gui/textarea.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/gui/textarea.c b/apps/gui/textarea.c
index 1ddb70eadf..54aa7e4a6c 100644
--- a/apps/gui/textarea.c
+++ b/apps/gui/textarea.c
@@ -49,7 +49,7 @@ int gui_textarea_put_message(struct screen * display,
int i;
gui_textarea_clear(display);
for(i=0;i<message->nb_lines && i+ystart<display->nb_lines;i++)
- display->puts_scroll(0, i+ystart, message->message_lines[i]);
+ display->puts_scroll(0, i+ystart, (unsigned char *)message->message_lines[i]);
gui_textarea_update(display);
return(i);
}
@@ -64,7 +64,8 @@ void gui_textarea_update_nblines(struct screen * display)
if(global_settings.buttonbar && display->has_buttonbar)
height -= BUTTONBAR_HEIGHT;
#endif
- display->getstringsize("A", &display->char_width, &display->char_height);
+ display->getstringsize((unsigned char *)"A", &display->char_width,
+ &display->char_height);
display->nb_lines = height / display->char_height;
#else
display->char_width = 1;