From 6ef2df13f7ee0470575db9e02663e30992a2a032 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 4 Dec 2011 11:12:17 +0000 Subject: Fix const correctness svn path=/trunk/netsurf/; revision=13228 --- utils/nsurl.c | 6 +++--- utils/nsurl.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'utils') 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); /** -- cgit v1.2.3