summaryrefslogtreecommitdiff
path: root/riscos/gui.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/gui.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/gui.c')
-rw-r--r--riscos/gui.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 6447e4d90..7a505cb5a 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -736,7 +736,7 @@ static char *path_to_url(const char *path)
char *unix_path; /* unix path */
char *escurl;
os_error *error;
- url_func_result url_err;
+ nserror url_err;
int urllen;
char *url; /* resulting url */
@@ -795,7 +795,7 @@ static char *path_to_url(const char *path)
/* We don't want '/' to be escaped. */
url_err = url_escape(url, FILE_SCHEME_PREFIX_LEN, false, "/", &escurl);
free(url); url = NULL;
- if (url_err != URL_FUNC_OK) {
+ if (url_err != NSERROR_OK) {
LOG(("url_escape failed: %s", url));
return NULL;
}
@@ -816,18 +816,18 @@ char *url_to_path(const char *url)
char *path;
char *filename;
char *respath;
- url_func_result res; /* result from url routines */
+ nserror res; /* result from url routines */
char *r;
res = url_path(url, &path);
- if (res != URL_FUNC_OK) {
+ if (res != NSERROR_OK) {
warn_user("NoMemory", 0);
return NULL;
}
res = url_unescape(path, &respath);
free(path);
- if (res != URL_FUNC_OK) {
+ if (res != NSERROR_OK) {
return NULL;
}