summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-08 00:16:50 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-08 00:16:50 +0100
commit096bd47ab0018e7b9c3affd58b6134463e2aaa65 (patch)
treeb3975e107568ee9d005e19a5f998c29c55ef1e2f /windows
parent781d42e33c6cc7d1660eb535c45f70a88b71579e (diff)
downloadnetsurf-096bd47ab0018e7b9c3affd58b6134463e2aaa65.tar.gz
netsurf-096bd47ab0018e7b9c3affd58b6134463e2aaa65.tar.bz2
refactor url utility functions to use standard nserror codes and have appropriate documentation.
Diffstat (limited to 'windows')
-rw-r--r--windows/download.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/windows/download.c b/windows/download.c
index fe2a09237..b721d1fdc 100644
--- a/windows/download.c
+++ b/windows/download.c
@@ -70,14 +70,14 @@ gui_download_window_create(download_context *ctx, struct gui_window *gui)
messages_get("UnknownSize") :
human_friendly_bytesize(total_size);
- if (url_nice(url, &filename, false) != URL_FUNC_OK)
+ if (url_nice(url, &filename, false) != NSERROR_OK)
filename = strdup(messages_get("UnknownFile"));
if (filename == NULL) {
warn_user(messages_get("NoMemory"), 0);
free(w);
return NULL;
}
- if (url_host(url, &domain) != URL_FUNC_OK)
+ if (url_host(url, &domain) != NSERROR_OK)
domain = strdup(messages_get("UnknownHost"));
if (domain == NULL) {
warn_user(messages_get("NoMemory"), 0);