diff options
author | Andrew Clayton <andrew@digital-domain.net> | 2022-06-16 02:00:52 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-06-22 00:30:44 +0200 |
commit | 4418f99cd46b17be893b6bd0df56434078e5aad3 (patch) | |
tree | 2a9c47681aac7159b088e8ac5925c900d072b0d3 /src/nxt_http_parse.h | |
parent | 637a2006a6c0da5825dd6b04940e05e2c9feda5d (diff) | |
download | unit-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_http_parse.h')
-rw-r--r-- | src/nxt_http_parse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_parse.h b/src/nxt_http_parse.h index 3cd9bd15..2b714464 100644 --- a/src/nxt_http_parse.h +++ b/src/nxt_http_parse.h @@ -35,7 +35,7 @@ typedef union { struct nxt_http_request_parse_s { nxt_int_t (*handler)(nxt_http_request_parse_t *rp, - u_char **pos, u_char *end); + u_char **pos, const u_char *end); nxt_str_t method; |