From 620fd90fa7739e0a5bc23bca77033da747046c7e Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Tue, 25 Jan 2011 17:16:20 +0000 Subject: General cleanup and warning fixes svn path=/trunk/netsurf/; revision=11486 --- cocoa/url.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cocoa/url.m') diff --git a/cocoa/url.m b/cocoa/url.m index 38d637e6e..33c8bfe61 100644 --- a/cocoa/url.m +++ b/cocoa/url.m @@ -22,7 +22,6 @@ #import -#define UNIMPL() NSLog( @"Function '%s' unimplemented", __func__ ) char *url_to_path(const char *url) { @@ -32,6 +31,6 @@ char *url_to_path(const char *url) char *path_to_url(const char *path) { - UNIMPL(); - return NULL; + return strdup( [[[NSURL fileURLWithPath: [NSString stringWithUTF8String: path]] + absoluteString] UTF8String] ); } -- cgit v1.2.3