summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_string.h
diff options
context:
space:
mode:
authorAndrew Clayton <andrew@digital-domain.net>2022-06-16 02:00:52 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2022-06-22 00:30:44 +0200
commit4418f99cd46b17be893b6bd0df56434078e5aad3 (patch)
tree2a9c47681aac7159b088e8ac5925c900d072b0d3 /src/nxt_string.h
parent637a2006a6c0da5825dd6b04940e05e2c9feda5d (diff)
downloadunit-4418f99cd46b17be893b6bd0df56434078e5aad3.tar.gz
unit-4418f99cd46b17be893b6bd0df56434078e5aad3.tar.bz2
Constified numerous function parameters.
As was pointed out by the cppcheck[0] static code analysis utility we can mark numerous function parameters as 'const'. This acts as a hint to the compiler about our intentions and the compiler will tell us when we deviate from them. [0]: https://cppcheck.sourceforge.io/
Diffstat (limited to 'src/nxt_string.h')
-rw-r--r--src/nxt_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_string.h b/src/nxt_string.h
index 80cdbb59..a8673c61 100644
--- a/src/nxt_string.h
+++ b/src/nxt_string.h
@@ -96,7 +96,7 @@ NXT_EXPORT u_char *nxt_memcasestrn(const u_char *s, const u_char *end,
const char *ss, size_t length);
NXT_EXPORT u_char *nxt_rmemstrn(const u_char *s, const u_char *end,
const char *ss, size_t length);
-NXT_EXPORT size_t nxt_str_strip(u_char *start, u_char *end);
+NXT_EXPORT size_t nxt_str_strip(const u_char *start, u_char *end);
typedef struct {