summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/nsurl.c6
-rw-r--r--utils/nsurl.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c
index 079a56c7b..6f827c249 100644
--- a/utils/nsurl.c
+++ b/utils/nsurl.c
@@ -241,7 +241,7 @@ enum url_sections {
* \param markers Updated to mark sections in the URL string
* \param joining True iff URL string is a relative URL for joining
*/
-static void nsurl__get_string_markers(const char const *url_s,
+static void nsurl__get_string_markers(const char * const url_s,
struct url_markers *markers, bool joining)
{
const char *pos = url_s; /** current position in url_s */
@@ -656,7 +656,7 @@ static inline int nsurl__get_ascii_offset(char c1, char c2)
*
* The section of url_s is normalised appropriately.
*/
-static nserror nsurl__create_from_section(const char const *url_s,
+static nserror nsurl__create_from_section(const char * const url_s,
const enum url_sections section,
const struct url_markers *pegs,
char *pos_norm,
@@ -1212,7 +1212,7 @@ static void nsurl__dump(const nsurl *url)
******************************************************************************/
/* exported interface, documented in nsurl.h */
-nserror nsurl_create(const char const *url_s, nsurl **url)
+nserror nsurl_create(const char * const url_s, nsurl **url)
{
struct url_markers m;
struct nsurl_components c;
diff --git a/utils/nsurl.h b/utils/nsurl.h
index 62b8477a7..96e7a76f8 100644
--- a/utils/nsurl.h
+++ b/utils/nsurl.h
@@ -60,7 +60,7 @@ typedef enum nsurl_component {
* It is up to the client to call nsurl_destroy when they are finished with
* the created object.
*/
-nserror nsurl_create(const char const *url_s, nsurl **url);
+nserror nsurl_create(const char * const url_s, nsurl **url);
/**