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 /content | |
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 'content')
-rw-r--r-- | content/content.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 */ |