diff options
Diffstat (limited to 'content')
-rw-r--r-- | content/fetch.c | 6 | ||||
-rw-r--r-- | content/fetchcache.c | 2 |
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, ¶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]); |