From e3211bf4fc478d78e881386c6df714061417f48d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 27 Sep 2011 14:42:45 +0000 Subject: fetch_can_fetch can take const nsurl. svn path=/trunk/netsurf/; revision=12902 --- content/fetch.c | 2 +- content/fetch.h | 2 +- 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); -- cgit v1.2.3