summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/url.c4
-rw-r--r--utils/url.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/url.c b/utils/url.c
index 26c3295ab..daf7e3616 100644
--- a/utils/url.c
+++ b/utils/url.c
@@ -534,14 +534,14 @@ url_func_result url_canonical_root(const char *url, char **result)
/**
- * Strip leafname, query and fragment segments from an URL
+ * Strip the topmost segment of the path
*
* \param url an absolute URL
* \param result pointer to pointer to buffer to hold result
* \return URL_FUNC_OK on success
*/
-url_func_result url_strip_lqf(const char *url, char **result)
+url_func_result url_parent(const char *url, char **result)
{
url_func_result status;
struct url_components components;
diff --git a/utils/url.h b/utils/url.h
index 58f1d1647..388a4b73d 100644
--- a/utils/url.h
+++ b/utils/url.h
@@ -28,7 +28,7 @@ url_func_result url_nice(const char *url, char **result,
bool remove_extensions);
url_func_result url_escape(const char *unescaped, char **result);
url_func_result url_canonical_root(const char *url, char **result);
-url_func_result url_strip_lqf(const char *url, char **result);
+url_func_result url_parent(const char *url, char **result);
url_func_result url_plq(const char *url, char **result);
url_func_result url_path(const char *url, char **result);
url_func_result url_compare(const char *url1, const char *url2,