summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-05-02 00:21:41 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-05-02 00:21:41 +0000
commit8cb321ec78908552cfc1329da3d6efaeac1e8423 (patch)
tree1e386700b410a648c5e1b71cb54c865843b45718 /content
parent8d57502f04441fff8678e5187e6955f75bf429b5 (diff)
downloadnetsurf-8cb321ec78908552cfc1329da3d6efaeac1e8423.tar.gz
netsurf-8cb321ec78908552cfc1329da3d6efaeac1e8423.tar.bz2
[project @ 2004-05-02 00:21:40 by jmb]
Minimal fixes to allow compilation with Norcroft svn path=/import/netsurf/; revision=813
Diffstat (limited to 'content')
-rw-r--r--content/fetch.c6
-rw-r--r--content/fetchcache.c2
2 files changed, 4 insertions, 4 deletions
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, &params);
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]);