summaryrefslogtreecommitdiff
path: root/amiga/misc.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2010-09-12 10:23:12 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2010-09-12 10:23:12 +0000
commitc0332c43946c1e700cc47835af047435d7b9d587 (patch)
tree5e4c14a53136b27a8689860a3b2c48739c3551d1 /amiga/misc.c
parent90b7aca9655789498119c8def1508bec90691ccf (diff)
downloadnetsurf-c0332c43946c1e700cc47835af047435d7b9d587.tar.gz
netsurf-c0332c43946c1e700cc47835af047435d7b9d587.tar.bz2
Use core file fetcher
svn path=/trunk/netsurf/; revision=10759
Diffstat (limited to 'amiga/misc.c')
-rwxr-xr-xamiga/misc.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/amiga/misc.c b/amiga/misc.c
index d9447aca8..b08ea7ff4 100755
--- a/amiga/misc.c
+++ b/amiga/misc.c
@@ -23,7 +23,6 @@
#include <proto/dos.h>
#include "utils/messages.h"
#include <stdlib.h>
-#include <curl/curl.h>
#include "utils/utils.h"
#include "utils/url.h"
@@ -60,7 +59,6 @@ void die(const char *error)
char *url_to_path(const char *url)
{
char *tmps, *unesc, *slash, *colon, *url2;
- CURL *curl;
if (strncmp(url, "file://", SLEN("file://")) != 0)
return NULL;
@@ -94,15 +92,8 @@ char *url_to_path(const char *url)
}
}
- if(curl = curl_easy_init())
- {
- unesc = curl_easy_unescape(curl,url2,0,NULL);
- tmps = strdup(unesc);
- free(url2);
- curl_free(unesc);
- curl_easy_cleanup(curl);
- return tmps;
- }
+ if(url_unescape(url2,&unesc) == URL_FUNC_OK)
+ return unesc;
return (char *)url2;
}