diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-05-08 00:16:50 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-08 00:16:50 +0100 |
commit | 096bd47ab0018e7b9c3affd58b6134463e2aaa65 (patch) | |
tree | b3975e107568ee9d005e19a5f998c29c55ef1e2f /monkey | |
parent | 781d42e33c6cc7d1660eb535c45f70a88b71579e (diff) | |
download | netsurf-096bd47ab0018e7b9c3affd58b6134463e2aaa65.tar.gz |
refactor url utility functions to use standard nserror codes and have appropriate documentation.
Diffstat (limited to 'monkey')
-rw-r--r-- | monkey/fetch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/monkey/fetch.c b/monkey/fetch.c index e2530e710..01258bb06 100644 --- a/monkey/fetch.c +++ b/monkey/fetch.c @@ -62,16 +62,16 @@ static char *url_to_path(const char *url) { char *path; char *respath; - url_func_result res; /* result from url routines */ + nserror res; /* result from url routines */ res = url_path(url, &path); - if (res != URL_FUNC_OK) { + if (res != NSERROR_OK) { return NULL; } res = url_unescape(path, &respath); free(path); - if (res != URL_FUNC_OK) { + if (res != NSERROR_OK) { return NULL; } |