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 --- content/content.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'content/content.c') diff --git a/content/content.c b/content/content.c index 782e1a370..9a33d964b 100644 --- a/content/content.c +++ b/content/content.c @@ -247,7 +247,8 @@ const char * const content_status_name[] = { /** An entry in handler_map. */ struct handler_entry { bool (*create)(struct content *c, const http_parameter *params); - bool (*process_data)(struct content *c, char *data, unsigned int size); + bool (*process_data)(struct content *c, + const char *data, unsigned int size); bool (*convert)(struct content *c); void (*reformat)(struct content *c, int width, int height); void (*destroy)(struct content *c); @@ -519,7 +520,7 @@ nserror content_llcache_callback(llcache_handle *llcache, case LLCACHE_EVENT_HAD_DATA: if (handler_map[c->type].process_data) { if (handler_map[c->type].process_data(c, - (char *) event->data.data.buf, + (const char *) event->data.data.buf, event->data.data.len) == false) { c->status = CONTENT_STATUS_ERROR; /** \todo It's not clear what error this is */ -- cgit v1.2.3