From fdaf72417a6172aa22cf067bc6cd625eeab2db0e Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 22 Jun 2004 17:37:51 +0000 Subject: [project @ 2004-06-22 17:37:51 by bursa] Fix aborting of fetches. svn path=/import/netsurf/; revision=990 --- content/fetchcache.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'content/fetchcache.c') diff --git a/content/fetchcache.c b/content/fetchcache.c index 3015f1314..65145ab36 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -29,8 +29,9 @@ static char error_page[1000]; static regex_t re_content_type; -static void fetchcache_callback(fetch_msg msg, void *p, char *data, unsigned long size); -static char *fetchcache_parse_type(char *s, char **params[]); +static void fetchcache_callback(fetch_msg msg, void *p, const char *data, + unsigned long size); +static char *fetchcache_parse_type(const char *s, char **params[]); static void fetchcache_error_page(struct content *c, const char *error); @@ -193,7 +194,8 @@ void fetchcache_go(struct content *content, char *referer, * This is called when the status of a fetch changes. */ -void fetchcache_callback(fetch_msg msg, void *p, char *data, unsigned long size) +void fetchcache_callback(fetch_msg msg, void *p, const char *data, + unsigned long size) { bool res; struct content *c = p; @@ -317,7 +319,7 @@ void fetchcache_init(void) #define MAX_ATTRS 10 -char *fetchcache_parse_type(char *s, char **params[]) +char *fetchcache_parse_type(const char *s, char **params[]) { char *type; unsigned int i; -- cgit v1.2.3