summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-04-10 17:13:53 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-04-10 17:13:53 +0000
commitb0f1b7b1704fb42675fff58a35a7ac1707bec2b2 (patch)
tree6dc2782e8fb7ea50e86d19229103da3eaea2ccbf /content/fetch.c
parent342fe780c6c28e0f9ae942a82cc27b1073a59337 (diff)
downloadnetsurf-b0f1b7b1704fb42675fff58a35a7ac1707bec2b2.tar.gz
netsurf-b0f1b7b1704fb42675fff58a35a7ac1707bec2b2.tar.bz2
Improve const-correctness of fetch_start
svn path=/trunk/netsurf/; revision=10342
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/fetch.c b/content/fetch.c
index 86671de46..02db40ba9 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -211,8 +211,8 @@ void fetch_unref_fetcher(scheme_fetcher *fetcher)
struct fetch * fetch_start(const char *url, const char *referer,
fetch_callback callback,
void *p, bool only_2xx, const char *post_urlenc,
- struct fetch_multipart_data *post_multipart,
- bool verifiable, char *headers[])
+ const struct fetch_multipart_data *post_multipart,
+ bool verifiable, const char *headers[])
{
char *host;
struct fetch *fetch;
@@ -312,7 +312,7 @@ struct fetch * fetch_start(const char *url, const char *referer,
/* Got a scheme fetcher, try and set up the fetch */
fetch->fetcher_handle =
fetch->ops->setup_fetch(fetch, url, only_2xx, post_urlenc,
- post_multipart, (const char **)headers);
+ post_multipart, headers);
if (fetch->fetcher_handle == NULL)
goto failed;