summaryrefslogtreecommitdiff
path: root/content/handlers
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-12-01 17:04:21 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-12-01 17:05:28 +0000
commit33c81b69325ecd0686477916c2d0a1c590eba773 (patch)
treeb091f02c210d66d7980dffc12f182478b1945521 /content/handlers
parent2e07d955b6489ac7d98708deb58adef1cb98d67a (diff)
downloadnetsurf-33c81b69325ecd0686477916c2d0a1c590eba773.tar.gz
netsurf-33c81b69325ecd0686477916c2d0a1c590eba773.tar.bz2
html_css_fetcher: Use corestring_lwc_x_ns_css
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers')
-rw-r--r--content/handlers/html/html_css_fetcher.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/content/handlers/html/html_css_fetcher.c b/content/handlers/html/html_css_fetcher.c
index 7987ea094..71fd78fe7 100644
--- a/content/handlers/html/html_css_fetcher.c
+++ b/content/handlers/html/html_css_fetcher.c
@@ -31,6 +31,7 @@
#include "netsurf/inttypes.h"
#include "utils/config.h"
+#include "utils/corestrings.h"
#include "utils/log.h"
#include "utils/ring.h"
#include "utils/nsurl.h"
@@ -284,7 +285,6 @@ static void html_css_fetcher_poll(lwc_string *scheme)
/* exported interface documented in html_internal.h */
nserror html_css_fetcher_register(void)
{
- lwc_string *scheme;
const struct fetcher_operation_table html_css_fetcher_ops = {
.initialise = html_css_fetcher_initialise,
.acceptable = html_css_fetcher_can_fetch,
@@ -296,13 +296,7 @@ nserror html_css_fetcher_register(void)
.finalise = html_css_fetcher_finalise
};
- if (lwc_intern_string("x-ns-css", SLEN("x-ns-css"),
- &scheme) != lwc_error_ok) {
- NSLOG(netsurf, INFO, "could not intern \"x-ns-css\".");
- return NSERROR_INIT_FAILED;
- }
-
- return fetcher_add(scheme, &html_css_fetcher_ops);
+ return fetcher_add(corestring_lwc_x_ns_css, &html_css_fetcher_ops);
}
/* exported interface documented in html_internal.h */