diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-26 12:19:35 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-26 12:19:35 +0000 |
commit | dc53b47e0b21d0666e5900f0908628da3e01f3cc (patch) | |
tree | a2a96afb3fd7218948ca038a34384b054010db3d | |
parent | 07d140f0f170f182e9434b6b559b77793ae7120c (diff) | |
download | netsurf-dc53b47e0b21d0666e5900f0908628da3e01f3cc.tar.gz netsurf-dc53b47e0b21d0666e5900f0908628da3e01f3cc.tar.bz2 |
Don't return length from nsurl_access.
svn path=/trunk/netsurf/; revision=12882
-rw-r--r-- | utils/nsurl.c | 3 | ||||
-rw-r--r-- | utils/nsurl.h | 7 |
2 files changed, 4 insertions, 6 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c index 49c8a2c76..6c51609f5 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -1182,11 +1182,10 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts, /* exported interface, documented in nsurl.h */ -const char *nsurl_access(const nsurl *url, size_t *url_l) +const char *nsurl_access(const nsurl *url) { assert(url != NULL); - *url_l = url->length; return url->string; } diff --git a/utils/nsurl.h b/utils/nsurl.h index 95e1698ef..ac62c7ced 100644 --- a/utils/nsurl.h +++ b/utils/nsurl.h @@ -125,18 +125,17 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts, /** - * Access a URL (section) as a string, from a NetSurf URL object + * Access a NetSurf URL object as a string * * \param url NetSurf URL to retrieve a string pointer for. - * \param url_l Returns length of returned string * \return the required string * * The returned string is owned by the NetSurf URL object. It will die * with the NetSurf URL object. Keep a reference to the URL if you need it. * - * The length returned in url_l excludes the trailing '\0'. + * The returned string has a trailing '\0'. */ -const char *nsurl_access(const nsurl *url, size_t *url_l); +const char *nsurl_access(const nsurl *url); /** |