summaryrefslogtreecommitdiff
path: root/frontends/beos
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-06-29 23:06:53 +0100
committerVincent Sanders <vince@kyllikki.org>2016-06-29 23:06:53 +0100
commitc313524998377db92e5387d209e1ea79fbc30ba6 (patch)
tree2d227e6d617fc98fbc4b0ad36a7870a63cc3f900 /frontends/beos
parentc523bb47a0c884f58ab267eb9ad699ccbed907d5 (diff)
downloadnetsurf-c313524998377db92e5387d209e1ea79fbc30ba6.tar.gz
netsurf-c313524998377db92e5387d209e1ea79fbc30ba6.tar.bz2
reduce curl usage to fetcher, url unescaping and time parsing
Diffstat (limited to 'frontends/beos')
-rw-r--r--frontends/beos/gui.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/frontends/beos/gui.cpp b/frontends/beos/gui.cpp
index 93b304a5c..53387ad07 100644
--- a/frontends/beos/gui.cpp
+++ b/frontends/beos/gui.cpp
@@ -30,7 +30,6 @@
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <curl/curl.h>
#include <Alert.h>
#include <Application.h>
@@ -795,12 +794,14 @@ static void gui_quit(void)
static char *url_to_path(const char *url)
{
- char *url_path = curl_unescape(url, 0);
- char *path;
+ char *url_path;
+ char *path = NULL;
- /* return the absolute path including leading / */
- path = strdup(url_path + (FILE_SCHEME_PREFIX_LEN - 1));
- curl_free(url_path);
+ if (url_unescape(url, 0, &url_path) == NSERROR_OK) {
+ /* return the absolute path including leading / */
+ path = strdup(url_path + (FILE_SCHEME_PREFIX_LEN - 1));
+ free(url_path);
+ }
return path;
}