diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-31 00:24:57 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-31 00:24:57 +0000 |
commit | ce3d99191842ded7687dc23c3ccb5f5ccc843558 (patch) | |
tree | 8bf59a56a3b5eadf727068201acd3e8c51bd9dc9 /desktop/download.c | |
parent | f995616509fc3c0556da49c915375108bf268f38 (diff) | |
download | netsurf-ce3d99191842ded7687dc23c3ccb5f5ccc843558.tar.gz netsurf-ce3d99191842ded7687dc23c3ccb5f5ccc843558.tar.bz2 |
use nsurl_nice and remove url_nice
change all callers over to using new API for generating nice filenames
from a url and remove the old API.
Diffstat (limited to 'desktop/download.c')
-rw-r--r-- | desktop/download.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/download.c b/desktop/download.c index a124c8909..6e2aad8ed 100644 --- a/desktop/download.c +++ b/desktop/download.c @@ -76,8 +76,9 @@ static char *download_default_filename(nsurl *url) { char *nice; - if (url_nice(nsurl_access(url), &nice, false) == NSERROR_OK) + if (nsurl_nice(url, &nice, false) == NSERROR_OK) { return nice; + } return NULL; } |