summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-01-24 19:31:50 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-01-24 19:31:50 +0000
commit178f3945b8502d5fd483e0d0814d169b4b9bad2f (patch)
tree887f87e37ef19f22da4e0a7fb73b0dac687a8938 /content
parentc4e2fff5a4670fd555c56a2b2ed232f210aaa2d5 (diff)
downloadnetsurf-178f3945b8502d5fd483e0d0814d169b4b9bad2f.tar.gz
netsurf-178f3945b8502d5fd483e0d0814d169b4b9bad2f.tar.bz2
Just use corestring refs.
Diffstat (limited to 'content')
-rw-r--r--content/fetchers/curl.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c
index f3a8385a1..90c9c138c 100644
--- a/content/fetchers/curl.c
+++ b/content/fetchers/curl.c
@@ -46,6 +46,7 @@
#include "content/urldb.h"
#include "desktop/netsurf.h"
#include "desktop/gui_factory.h"
+#include "utils/corestrings.h"
#include "utils/nsoption.h"
#include "utils/log.h"
#include "utils/messages.h"
@@ -236,18 +237,10 @@ void fetch_curl_register(void)
for (i = 0; data->protocols[i]; i++) {
if (strcmp(data->protocols[i], "http") == 0) {
- if (lwc_intern_string("http", SLEN("http"),
- &scheme) != lwc_error_ok) {
- die("Failed to initialise the fetch module "
- "(couldn't intern \"http\").");
- }
+ scheme = lwc_string_ref(corestring_lwc_http);
} else if (strcmp(data->protocols[i], "https") == 0) {
- if (lwc_intern_string("https", SLEN("https"),
- &scheme) != lwc_error_ok) {
- die("Failed to initialise the fetch module "
- "(couldn't intern \"https\").");
- }
+ scheme = lwc_string_ref(corestring_lwc_https);
} else {
/* Ignore non-http(s) protocols */