diff options
-rw-r--r-- | lib/dotdot.c | 2 | ||||
-rw-r--r-- | lib/dotdot.h | 2 | ||||
-rw-r--r-- | lib/splay.c | 4 | ||||
-rw-r--r-- | tests/unit/unit1395.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/dotdot.c b/lib/dotdot.c index 41b73bef4..0cb3c9667 100644 --- a/lib/dotdot.c +++ b/lib/dotdot.c @@ -47,7 +47,7 @@ * * an allocated dedotdotified output string */ -char *Curl_dedotdotify(char *input) +char *Curl_dedotdotify(const char *input) { size_t inlen = strlen(input); char *clone; diff --git a/lib/dotdot.h b/lib/dotdot.h index c3487c137..f511396d7 100644 --- a/lib/dotdot.h +++ b/lib/dotdot.h @@ -21,5 +21,5 @@ * KIND, either express or implied. * ***************************************************************************/ -char *Curl_dedotdotify(char *input); +char *Curl_dedotdotify(const char *input); #endif diff --git a/lib/splay.c b/lib/splay.c index 3570712d4..129d24476 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -101,7 +101,7 @@ struct Curl_tree *Curl_splayinsert(struct timeval i, struct Curl_tree *t, struct Curl_tree *node) { - static struct timeval KEY_NOTUSED = {-1,-1}; /* will *NEVER* appear */ + static const struct timeval KEY_NOTUSED = {-1,-1}; /* will *NEVER* appear */ if(node == NULL) return t; @@ -223,7 +223,7 @@ int Curl_splayremovebyaddr(struct Curl_tree *t, struct Curl_tree *removenode, struct Curl_tree **newroot) { - static struct timeval KEY_NOTUSED = {-1,-1}; /* will *NEVER* appear */ + static const struct timeval KEY_NOTUSED = {-1,-1}; /* will *NEVER* appear */ struct Curl_tree *x; if(!t || !removenode) diff --git a/tests/unit/unit1395.c b/tests/unit/unit1395.c index 0fdf147d9..b27ba06b6 100644 --- a/tests/unit/unit1395.c +++ b/tests/unit/unit1395.c @@ -44,7 +44,7 @@ UNITTEST_START unsigned int i; int fails=0; - struct dotdot pairs[] = { + const struct dotdot pairs[] = { { "/a/b/c/./../../g", "/a/g" }, { "mid/content=5/../6", "mid/6" }, { "/hello/../moo", "/moo" }, |