diff options
author | rcombs <rcombs@rcombs.me> | 2023-03-08 02:18:39 -0600 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-03-08 15:38:26 +0100 |
commit | b1d735956f42cf1fb2351116a30b0aa35c78829e (patch) | |
tree | af1ac5ed11ace1486dd7d5811a159fc9147d6b25 /include | |
parent | 95cb7d3166acca4cfe27526ee3feddd456b86684 (diff) | |
download | curl-b1d735956f42cf1fb2351116a30b0aa35c78829e.tar.gz |
urlapi: take const args in _dup and _get functions
Closes #10708
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/urlapi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/curl/urlapi.h b/include/curl/urlapi.h index b97b53475..b3504b683 100644 --- a/include/curl/urlapi.h +++ b/include/curl/urlapi.h @@ -117,14 +117,14 @@ CURL_EXTERN void curl_url_cleanup(CURLU *handle); * curl_url_dup() duplicates a CURLU handle and returns a new copy. The new * handle must also be freed with curl_url_cleanup(). */ -CURL_EXTERN CURLU *curl_url_dup(CURLU *in); +CURL_EXTERN CURLU *curl_url_dup(const CURLU *in); /* * curl_url_get() extracts a specific part of the URL from a CURLU * handle. Returns error code. The returned pointer MUST be freed with * curl_free() afterwards. */ -CURL_EXTERN CURLUcode curl_url_get(CURLU *handle, CURLUPart what, +CURL_EXTERN CURLUcode curl_url_get(const CURLU *handle, CURLUPart what, char **part, unsigned int flags); /* |