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/draw.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'riscos/draw.c') diff --git a/riscos/draw.c b/riscos/draw.c index b8a07e7f4..3068649c1 100644 --- a/riscos/draw.c +++ b/riscos/draw.c @@ -24,7 +24,7 @@ void draw_create(struct content *c) void draw_process_data(struct content *c, char *data, unsigned long size) { c->data.draw.data = xrealloc(c->data.draw.data, c->data.draw.length + size); - memcpy(c->data.draw.data + c->data.draw.length, data, size); + memcpy((char*)c->data.draw.data + c->data.draw.length, data, size); c->data.draw.length += size; c->size += size; } @@ -46,7 +46,7 @@ int draw_convert(struct content *c, unsigned int width, unsigned int height) /* BBox contents in Draw units (256*OS unit) */ error = xdrawfile_bbox(0, (drawfile_diagram*)(c->data.draw.data), - c->data.draw.length, matrix, bbox); + (int)c->data.draw.length, matrix, bbox); if (error) { LOG(("error: %s", error->errmess)); @@ -90,9 +90,6 @@ void draw_redraw(struct content *c, long x, long y, unsigned long width, unsigned long height, long clip_x0, long clip_y0, long clip_x1, long clip_y1) { - os_error *error; - unsigned int size; - os_box bbox; os_trfm *matrix = xcalloc(1, sizeof(os_trfm)); /* Scaled image. Transform units (65536*OS units) */ @@ -105,7 +102,7 @@ void draw_redraw(struct content *c, long x, long y, matrix->entries[2][1] = (y-height) * 256; xdrawfile_render(0, (drawfile_diagram*)(c->data.draw.data), - c->data.draw.length, matrix, 0, 0); + (int)c->data.draw.length, matrix, 0, 0); xfree(matrix); } -- cgit v1.2.3