From 8cb321ec78908552cfc1329da3d6efaeac1e8423 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 2 May 2004 00:21:41 +0000 Subject: [project @ 2004-05-02 00:21:40 by jmb] Minimal fixes to allow compilation with Norcroft svn path=/import/netsurf/; revision=813 --- content/fetch.c | 6 +++--- content/fetchcache.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'content') diff --git a/content/fetch.c b/content/fetch.c index 55ef247f5..35f19ca0f 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -443,7 +443,7 @@ void fetch_abort(struct fetch *f) do { fetch->locked++; fetch->callback(FETCH_ERROR, fetch->p, - messages_get("FetchError"), 0); + (char*)messages_get("FetchError"), 0); fetch->locked--; next_fetch = fetch->queue_next; fetch_free(fetch); @@ -692,7 +692,7 @@ bool fetch_process_headers(struct fetch *f) /* handle HTTP errors (non 2xx response codes) */ if (f->only_2xx && strncmp(f->url, "http", 4) == 0 && (http_code < 200 || 299 < http_code)) { - f->callback(FETCH_ERROR, f->p, messages_get("Not2xx"), 0); + f->callback(FETCH_ERROR, f->p, (char*)messages_get("Not2xx"), 0); f->locked--; return true; } @@ -717,7 +717,7 @@ bool fetch_process_headers(struct fetch *f) } LOG(("FETCH_TYPE, '%s'", type)); - f->callback(FETCH_TYPE, f->p, type, f->content_length); + f->callback(FETCH_TYPE, f->p, (char*)type, f->content_length); f->locked--; if (f->aborting) return true; diff --git a/content/fetchcache.c b/content/fetchcache.c index 23f8fc19a..f6fcb01f8 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -160,7 +160,7 @@ void fetchcache_callback(fetch_msg msg, void *p, char *data, unsigned long size) mime_type = fetchcache_parse_type(data, ¶ms); type = content_lookup(mime_type); LOG(("FETCH_TYPE, type %u", type)); - content_set_type(c, type, mime_type, params); + content_set_type(c, type, mime_type, (const char**)params); free(mime_type); for (i = 0; params[i]; i++) free(params[i]); -- cgit v1.2.1