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. --- framebuffer/fetch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framebuffer/fetch.c') diff --git a/framebuffer/fetch.c b/framebuffer/fetch.c index 7c8dcc589..6d97cfda7 100644 --- a/framebuffer/fetch.c +++ b/framebuffer/fetch.c @@ -71,16 +71,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; } -- cgit v1.2.3