summaryrefslogtreecommitdiff
path: root/content/fetchers/resource.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-01-24 20:08:41 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-01-24 20:08:41 +0000
commit14238615a43f3c0f57790ab4b54fd44204695179 (patch)
treee07ea5f844f9aaea5a69d63c9e3a03a1c9f5462d /content/fetchers/resource.c
parente32dc31b04b8db0c27ef666e85a0cd058302fb15 (diff)
downloadnetsurf-14238615a43f3c0f57790ab4b54fd44204695179.tar.gz
netsurf-14238615a43f3c0f57790ab4b54fd44204695179.tar.bz2
Use corestrings for "about", "data", and "resource".
Diffstat (limited to 'content/fetchers/resource.c')
-rw-r--r--content/fetchers/resource.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/content/fetchers/resource.c b/content/fetchers/resource.c
index cce816aa5..b2791b432 100644
--- a/content/fetchers/resource.c
+++ b/content/fetchers/resource.c
@@ -43,6 +43,7 @@
#include "content/urldb.h"
#include "desktop/gui.h"
#include "desktop/gui_factory.h"
+#include "utils/corestrings.h"
#include "utils/nsoption.h"
#include "utils/log.h"
#include "utils/messages.h"
@@ -356,13 +357,7 @@ static void fetch_resource_poll(lwc_string *scheme)
void fetch_resource_register(void)
{
- lwc_string *scheme;
-
- if (lwc_intern_string("resource", SLEN("resource"),
- &scheme) != lwc_error_ok) {
- die("Failed to initialise the fetch module "
- "(couldn't intern \"resource\").");
- }
+ lwc_string *scheme = lwc_string_ref(corestring_lwc_resource);
fetch_add_fetcher(scheme,
fetch_resource_initialise,