From 43a99ab683d14c4a11d5fbeaef90d68c84e345fb Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 3 Apr 2010 16:37:36 +0000 Subject: Constify data parameter to *_process_data svn path=/trunk/netsurf/; revision=10234 --- render/html.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'render/html.c') 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); } } -- cgit v1.2.3