From 096bd47ab0018e7b9c3affd58b6134463e2aaa65 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 8 May 2014 00:16:50 +0100 Subject: refactor url utility functions to use standard nserror codes and have appropriate documentation. --- windows/download.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'windows') 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); -- cgit v1.2.3