summaryrefslogtreecommitdiff
path: root/content/fetchcache.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-06-22 17:37:51 +0000
committerJames Bursa <james@netsurf-browser.org>2004-06-22 17:37:51 +0000
commitfdaf72417a6172aa22cf067bc6cd625eeab2db0e (patch)
tree0a68e355f76647de3650563dc6a9390715359431 /content/fetchcache.c
parent1fa1786d832018f8a4e6a58c23ad968e84eb9bfa (diff)
downloadnetsurf-fdaf72417a6172aa22cf067bc6cd625eeab2db0e.tar.gz
netsurf-fdaf72417a6172aa22cf067bc6cd625eeab2db0e.tar.bz2
[project @ 2004-06-22 17:37:51 by bursa]
Fix aborting of fetches. svn path=/import/netsurf/; revision=990
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r--content/fetchcache.c10
1 files changed, 6 insertions, 4 deletions
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;