diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-11-05 00:07:06 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-11-05 00:07:06 +0000 |
commit | 78aa34e5d761c2597f24ebba89c69ac6fda2f3a8 (patch) | |
tree | 333148b1546c20eb134af6495a4185705ab032e4 | |
parent | 7c63f5f66bde003c2e661f2914b74872cb5a5b8b (diff) | |
download | netsurf-78aa34e5d761c2597f24ebba89c69ac6fda2f3a8.tar.gz netsurf-78aa34e5d761c2597f24ebba89c69ac6fda2f3a8.tar.bz2 |
remove user warnings from hotlist load and curl poll
-rw-r--r-- | content/fetchers/curl.c | 4 | ||||
-rw-r--r-- | desktop/hotlist.c | 17 |
2 files changed, 14 insertions, 7 deletions
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index 2644c68d4..a1d7ee190 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -1325,9 +1325,9 @@ static void fetch_curl_poll(lwc_string *scheme_ignored) do { codem = curl_multi_perform(fetch_curl_multi, &running); if (codem != CURLM_OK && codem != CURLM_CALL_MULTI_PERFORM) { - NSLOG(netsurf, WARNING, "curl_multi_perform: %i %s", + NSLOG(netsurf, WARNING, + "curl_multi_perform: %i %s", codem, curl_multi_strerror(codem)); - guit->misc->warning("MiscError", curl_multi_strerror(codem)); return; } } while (codem == CURLM_CALL_MULTI_PERFORM); diff --git a/desktop/hotlist.c b/desktop/hotlist.c index 4bdd7c8cb..4daaaed71 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -890,7 +890,9 @@ static nserror hotlist_load(const char *path, bool *loaded) corestring_lwc_html); if (html == NULL) { dom_node_unref(document); - guit->misc->warning("TreeLoadError", "(<html> not found)"); + NSLOG(netsurf, WARNING, + "%s (<html> not found)", + messages_get("TreeLoadError")); return NSERROR_OK; } @@ -899,7 +901,9 @@ static nserror hotlist_load(const char *path, bool *loaded) if (body == NULL) { dom_node_unref(html); dom_node_unref(document); - guit->misc->warning("TreeLoadError", "(<html>...<body> not found)"); + NSLOG(netsurf, WARNING, + "%s (<html>...<body> not found)", + messages_get("TreeLoadError")); return NSERROR_OK; } @@ -909,8 +913,9 @@ static nserror hotlist_load(const char *path, bool *loaded) dom_node_unref(body); dom_node_unref(html); dom_node_unref(document); - guit->misc->warning("TreeLoadError", - "(<html>...<body>...<ul> not found.)"); + NSLOG(netsurf, WARNING, + "%s (<html>...<body>...<ul> not found.)", + messages_get("TreeLoadError")); return NSERROR_OK; } @@ -934,7 +939,9 @@ static nserror hotlist_load(const char *path, bool *loaded) dom_node_unref(document); if (err != NSERROR_OK) { - guit->misc->warning("TreeLoadError", "(Failed building tree.)"); + NSLOG(netsurf, WARNING, + "%s (Failed building tree.)", + messages_get("TreeLoadError")); return NSERROR_OK; } |