summaryrefslogtreecommitdiff
path: root/riscos/theme_install.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-27 01:27:27 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-27 01:27:27 +0000
commitae326427a1bc0efbaab687364351a9eea3f0750b (patch)
tree993dcdece2f08606bf9e775d7269814f339be964 /riscos/theme_install.c
parent2b352b57524ab774616d79108d57c2cf5797cc9e (diff)
downloadnetsurf-ae326427a1bc0efbaab687364351a9eea3f0750b.tar.gz
netsurf-ae326427a1bc0efbaab687364351a9eea3f0750b.tar.bz2
Squash warnings
svn path=/trunk/netsurf/; revision=6912
Diffstat (limited to 'riscos/theme_install.c')
-rw-r--r--riscos/theme_install.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/riscos/theme_install.c b/riscos/theme_install.c
index 32b69a749..fc0cdc5b0 100644
--- a/riscos/theme_install.c
+++ b/riscos/theme_install.c
@@ -149,10 +149,12 @@ void theme_install_callback(content_msg msg, struct content *c,
bool theme_install_read(char *source_data, unsigned long source_size)
{
+ void *data = source_data;
+
if (source_size < sizeof(struct theme_file_header))
return false;
if (!ro_gui_theme_read_file_header(&theme_install_descriptor,
- (struct theme_file_header *) source_data))
+ (struct theme_file_header *) data))
return false;
if (source_size - sizeof(struct theme_file_header) !=
theme_install_descriptor.compressed_size)
@@ -183,7 +185,7 @@ bool ro_gui_theme_install_apply(wimp_w w)
LOG(("malloc failed"));
warn_user("NoMemory", 0);
}
- for (fix = theme_file; *fix != '\0'; *fix++)
+ for (fix = theme_file; *fix != '\0'; fix++)
if (*fix == ' ')
*fix = 160; /* hard space */
@@ -193,8 +195,8 @@ bool ro_gui_theme_install_apply(wimp_w w)
theme_save[sizeof theme_save - 1] = '\0';
error = xosfile_save_stamped(theme_save, 0xffd,
- theme_install_content->source_data,
- theme_install_content->source_data +
+ (unsigned char *) theme_install_content->source_data,
+ (unsigned char *) theme_install_content->source_data +
theme_install_content->source_size);
if (error) {
LOG(("xosfile_save_stamped: 0x%x: %s",