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/plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'riscos/plugin.c') diff --git a/riscos/plugin.c b/riscos/plugin.c index d480bf8fc..4bdbdf4e9 100644 --- a/riscos/plugin.c +++ b/riscos/plugin.c @@ -439,7 +439,7 @@ void plugin_create_sysvar(const char *mime_type, char* sysvar) e = xmimemaptranslate_mime_type_to_filetype(mime_type, (bits *) &fv); - sprintf(sysvar, "%s%x", ALIAS_PREFIX, fv); + sprintf(sysvar, "%s%x", ALIAS_PREFIX, (unsigned int)fv); } /** @@ -458,7 +458,7 @@ bool plugin_handleable(const char *mime_type) return false; } - sprintf(sysvar, "%s%x", ALIAS_PREFIX, fv); + sprintf(sysvar, "%s%x", ALIAS_PREFIX, (unsigned int)fv); LOG(("%s, %s", mime_type, sysvar)); if (getenv(sysvar) == 0) return false; @@ -804,7 +804,7 @@ void plugin_write_stream(struct browser_window *bw, struct object_params *params plugin_message_stream_write *pmsw; plugin_message_stream_written *pmswt; struct plugin_message *temp; - int consumed = 0; + unsigned int consumed = 0; pmsw = (plugin_message_stream_write*)&m.data; -- cgit v1.2.3