diff options
author | John Tytgat <joty@netsurf-browser.org> | 2004-07-08 20:14:54 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2004-07-08 20:14:54 +0000 |
commit | 9f1497ac804fa60fd4b3ae36e5f4c7bafcfd3965 (patch) | |
tree | e2cc0e0241a82f4117138332719113316f503023 /riscos/save_draw.c | |
parent | 9295b0bcb142c1f11dc314d211a4cbedfdaafd14 (diff) | |
download | netsurf-9f1497ac804fa60fd4b3ae36e5f4c7bafcfd3965.tar.gz netsurf-9f1497ac804fa60fd4b3ae36e5f4c7bafcfd3965.tar.bz2 |
[project @ 2004-07-08 20:14:54 by joty]
Lose compiler warnings.
svn path=/import/netsurf/; revision=1059
Diffstat (limited to 'riscos/save_draw.c')
-rw-r--r-- | riscos/save_draw.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/riscos/save_draw.c b/riscos/save_draw.c index 0708c9214..baba7ffa4 100644 --- a/riscos/save_draw.c +++ b/riscos/save_draw.c @@ -95,7 +95,7 @@ bool save_as_draw(struct content *c, const char *path) box = c->data.html.layout->children; current_width = c->available_width; - if ((diagram = drawbuf_claim(sizeof(drawfile_diagram_base), DrawBuf_eHeader)) == NULL) + if ((diagram = (drawfile_diagram_base *)drawbuf_claim(sizeof(drawfile_diagram_base), DrawBuf_eHeader)) == NULL) goto draw_save_error; /* write the Draw diagram */ @@ -273,7 +273,7 @@ static bool drawbuf_save_file(const char *drawfilename) if (oDrawBuf.numFonts > 0) { drawfile_object *dro; - if ((dro = drawbuf_claim(8, DrawBuf_eFontTable)) == NULL) + if ((dro = (drawfile_object *)drawbuf_claim(8, DrawBuf_eFontTable)) == NULL) goto file_save_error; dro->type = drawfile_TYPE_FONT_TABLE; @@ -347,7 +347,7 @@ bool add_options(void) drawfile_object *dro; drawfile_options *dfo; - if ((dro = drawbuf_claim(8 + sizeof(drawfile_options), DrawBuf_eBody)) == NULL) + if ((dro = (drawfile_object *)drawbuf_claim(8 + sizeof(drawfile_options), DrawBuf_eBody)) == NULL) return false; dro->type = drawfile_TYPE_OPTIONS; @@ -825,7 +825,6 @@ static bool add_text(struct box *box, unsigned long cbc, long x, long y) &rotext, &rolength, &consumed); - LOG(("txtenum <%.*s> (%d bytes), returned width %d, font name <%s>, RISC OS text <%.*s>, consumed %d\n", txt_len, txt, txt_len, width, rofontname, rolength, rotext, consumed)); /* Error happened ? */ if (rotext == NULL) return false; @@ -859,7 +858,7 @@ static bool add_text(struct box *box, unsigned long cbc, long x, long y) dt->text[rolength++] = 0; } while (rolength % 4); - free(rotext); + free((void *)rotext); /* Go to next chunk : */ x += width * 512; |