diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-03 16:37:36 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-03 16:37:36 +0000 |
commit | 43a99ab683d14c4a11d5fbeaef90d68c84e345fb (patch) | |
tree | cd0a593404904b27fb92b98b5cc600b495f6e465 /render/html.c | |
parent | 4839adaff307200236329b0c56dbc2b04e66edcb (diff) | |
download | netsurf-43a99ab683d14c4a11d5fbeaef90d68c84e345fb.tar.gz netsurf-43a99ab683d14c4a11d5fbeaef90d68c84e345fb.tar.bz2 |
Constify data parameter to *_process_data
svn path=/trunk/netsurf/; revision=10234
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/render/html.c b/render/html.c index ce34d5d63..e38a4ba99 100644 --- a/render/html.c +++ b/render/html.c @@ -192,7 +192,7 @@ error: * The data is parsed in chunks of size CHUNK, multitasking in between. */ -bool html_process_data(struct content *c, char *data, unsigned int size) +bool html_process_data(struct content *c, const char *data, unsigned int size) { unsigned long x; binding_error err; @@ -200,7 +200,7 @@ bool html_process_data(struct content *c, char *data, unsigned int size) for (x = 0; x + CHUNK <= size; x += CHUNK) { err = binding_parse_chunk(c->data.html.parser_binding, - (uint8_t *) data + x, CHUNK); + (const uint8_t *) data + x, CHUNK); if (err == BINDING_ENCODINGCHANGE) { goto encoding_change; } else if (err != BINDING_OK) { @@ -216,7 +216,7 @@ bool html_process_data(struct content *c, char *data, unsigned int size) } err = binding_parse_chunk(c->data.html.parser_binding, - (uint8_t *) data + x, (size - x)); + (const uint8_t *) data + x, (size - x)); if (err == BINDING_ENCODINGCHANGE) { goto encoding_change; } else if (err != BINDING_OK) { @@ -294,7 +294,7 @@ encoding_change: /* Recurse to reprocess all that data. This is safe because * the encoding is now specified at parser-start which means * it cannot be changed again. */ - return html_process_data(c, (char *) source_data, source_size); + return html_process_data(c, source_data, source_size); } } |