summaryrefslogtreecommitdiff
path: root/riscos/download.c
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 /riscos/download.c
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 'riscos/download.c')
-rw-r--r--riscos/download.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/riscos/download.c b/riscos/download.c
index 6cba17ef0..05a2e9ec9 100644
--- a/riscos/download.c
+++ b/riscos/download.c
@@ -230,7 +230,7 @@ static struct gui_download_window *gui_download_window_create(download_context *
struct gui_download_window *dw;
bool space_warning = false;
os_error *error;
- url_func_result res;
+ nserror res;
char *local_path;
nserror err;
size_t i, last_dot;
@@ -260,22 +260,22 @@ static struct gui_download_window *gui_download_window_create(download_context *
/* Get scheme from URL */
res = url_scheme(url, &scheme);
- if (res == URL_FUNC_NOMEM) {
+ if (res == NSERROR_NOMEM) {
warn_user("NoMemory", 0);
free(dw);
return 0;
- } else if (res == URL_FUNC_OK) {
+ } else if (res == NSERROR_OK) {
/* If we have a scheme and it's "file", then
* attempt to use the local filetype directly */
if (strcasecmp(scheme, "file") == 0) {
char *path = NULL;
res = url_path(url, &path);
- if (res == URL_FUNC_NOMEM) {
+ if (res == NSERROR_NOMEM) {
warn_user("NoMemory", 0);
free(scheme);
free(dw);
return 0;
- } else if (res == URL_FUNC_OK) {
+ } else if (res == NSERROR_OK) {
char *raw_path = curl_unescape(path,
strlen(path));
if (raw_path == NULL) {