From 59fb052818656e74162d7f026f7089ec42c1e8a0 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 27 Dec 2003 00:11:57 +0000 Subject: [project @ 2003-12-27 00:11:57 by jmb] Tidy code to reduce compiler warnings. htmlredraw.c and plugin.c produce the most now. Hopefully I haven't broken anything ;) svn path=/import/netsurf/; revision=451 --- riscos/theme.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'riscos/theme.c') diff --git a/riscos/theme.c b/riscos/theme.c index 25cc6eb67..b42391f42 100644 --- a/riscos/theme.c +++ b/riscos/theme.c @@ -74,7 +74,7 @@ void ro_theme_load(char *pathname) obj_type = osfile_read_no_path(filename, 0, 0, &size, 0); assert(obj_type & fileswitch_IS_FILE); - theme_sprite_area = xcalloc(size + 16, 1); + theme_sprite_area = xcalloc((unsigned int)(size + 16), 1); theme_sprite_area->size = size + 16; theme_sprite_area->sprite_count = 0; theme_sprite_area->first = 16; @@ -94,7 +94,7 @@ void ro_theme_load(char *pathname) osspriteop_return_name(osspriteop_USER_AREA, theme_sprite_area, name, 32, i); if (strncmp(name, "throbber", 8) == 0) { - int n = atoi(name + 8); + unsigned int n = atoi(name + 8); if (theme_throbs < n) theme_throbs = n; } @@ -140,7 +140,9 @@ int ro_theme_toolbar_height(void) void ro_theme_resize_toolbar(wimp_w w, int width, int height) { - wimp_icon_state ic = {w, ICON_TOOLBAR_URL}; + wimp_icon_state ic; + ic.w = w; + ic.i = ICON_TOOLBAR_URL; wimp_get_icon_state(&ic); wimp_resize_icon(w, ICON_TOOLBAR_URL, ic.icon.extent.x0, ic.icon.extent.y0, -- cgit v1.2.3