diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-08-13 14:11:05 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-08-13 14:11:05 +0000 |
commit | 9e68e32338513c358ae168f4be1c5ffdf4e4de87 (patch) | |
tree | 7272e20784ef9202b80d88054863e455b469f78d /render | |
parent | 905fa1f62468e570c808db95ad911de88be77a9a (diff) | |
download | netsurf-9e68e32338513c358ae168f4be1c5ffdf4e4de87.tar.gz netsurf-9e68e32338513c358ae168f4be1c5ffdf4e4de87.tar.bz2 |
Warnings.squash();
svn path=/trunk/netsurf/; revision=5088
Diffstat (limited to 'render')
-rw-r--r-- | render/directory.c | 8 | ||||
-rw-r--r-- | render/html.c | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/render/directory.c b/render/directory.c index 754449df5..1363ad251 100644 --- a/render/directory.c +++ b/render/directory.c @@ -103,7 +103,8 @@ bool directory_convert(struct content *c, int width, int height) { #ifndef WITH_HUBBUB htmlParseChunk(c->data.html.parser, buffer, strlen(buffer), 0); #else - hubbub_parser_parse_chunk(c->data.html.parser, buffer, strlen(buffer)); + hubbub_parser_parse_chunk(c->data.html.parser, + (uint8_t *) buffer, strlen(buffer)); #endif res = url_parent(c->url, &up); @@ -117,7 +118,8 @@ bool directory_convert(struct content *c, int width, int height) { strlen(buffer), 0); #else hubbub_parser_parse_chunk(c->data.html.parser, - buffer, strlen(buffer)); + (uint8_t *) buffer, + strlen(buffer)); #endif } free(up); @@ -139,7 +141,7 @@ bool directory_convert(struct content *c, int width, int height) { htmlParseChunk(c->data.html.parser, buffer, strlen(buffer), 0); #else hubbub_parser_parse_chunk(c->data.html.parser, - buffer, strlen(buffer)); + (uint8_t *) buffer, strlen(buffer)); #endif } closedir(parent); diff --git a/render/html.c b/render/html.c index 7df0816e6..b15c7eb93 100644 --- a/render/html.c +++ b/render/html.c @@ -600,7 +600,8 @@ bool html_process_data(struct content *c, char *data, unsigned int size) for (x = 0; x + CHUNK <= size; x += CHUNK) { #ifdef WITH_HUBBUB err = hubbub_parser_parse_chunk( - c->data.html.parser, data + x, CHUNK); + c->data.html.parser, + (uint8_t *) data + x, CHUNK); if (err == HUBBUB_ENCODINGCHANGE) { goto encoding_change; } @@ -612,7 +613,8 @@ bool html_process_data(struct content *c, char *data, unsigned int size) #ifdef WITH_HUBBUB err = hubbub_parser_parse_chunk( - c->data.html.parser, data + x, (size - x)); + c->data.html.parser, + (uint8_t *) data + x, (size - x)); if (err == HUBBUB_ENCODINGCHANGE) { goto encoding_change; } |