summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-09-27 14:42:45 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-09-27 14:42:45 +0000
commite3211bf4fc478d78e881386c6df714061417f48d (patch)
tree09e873d03d591e4f36f4ef5731dc14fe142b739b /content
parent7e7e1f6ed33198102e88cf42a181608269e0c289 (diff)
downloadnetsurf-e3211bf4fc478d78e881386c6df714061417f48d.tar.gz
netsurf-e3211bf4fc478d78e881386c6df714061417f48d.tar.bz2
fetch_can_fetch can take const nsurl.
svn path=/trunk/netsurf/; revision=12902
Diffstat (limited to 'content')
-rw-r--r--content/fetch.c2
-rw-r--r--content/fetch.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/content/fetch.c b/content/fetch.c
index ffabd6799..651f02a7b 100644
--- a/content/fetch.c
+++ b/content/fetch.c
@@ -523,7 +523,7 @@ void fetch_poll(void)
* \return true if the scheme is supported
*/
-bool fetch_can_fetch(nsurl *url)
+bool fetch_can_fetch(const nsurl *url)
{
scheme_fetcher *fetcher = fetchers;
bool match;
diff --git a/content/fetch.h b/content/fetch.h
index 66a0f4a44..575206255 100644
--- a/content/fetch.h
+++ b/content/fetch.h
@@ -96,7 +96,7 @@ void fetch_poll(void);
void fetch_quit(void);
const char *fetch_filetype(const char *unix_path);
char *fetch_mimetype(const char *ro_path);
-bool fetch_can_fetch(nsurl *url);
+bool fetch_can_fetch(const nsurl *url);
void fetch_change_callback(struct fetch *fetch,
fetch_callback callback,
void *p);