diff options
author | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-25 17:16:20 +0000 |
---|---|---|
committer | Sven Weidauer <sven.weidauer@gmail.com> | 2011-01-25 17:16:20 +0000 |
commit | 620fd90fa7739e0a5bc23bca77033da747046c7e (patch) | |
tree | 85556b352f0ad3390cdcad1f03cc93fd5c8c6c93 /cocoa/url.m | |
parent | 67c9970e544f987fc275c7a5eac67a9123e94868 (diff) | |
download | netsurf-620fd90fa7739e0a5bc23bca77033da747046c7e.tar.gz netsurf-620fd90fa7739e0a5bc23bca77033da747046c7e.tar.bz2 |
General cleanup and warning fixes
svn path=/trunk/netsurf/; revision=11486
Diffstat (limited to 'cocoa/url.m')
-rw-r--r-- | cocoa/url.m | 5 |
1 files changed, 2 insertions, 3 deletions
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 <Cocoa/Cocoa.h> -#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] ); } |