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/
This commit is contained in:
committed by
Alejandro Colomar
parent
637a2006a6
commit
4418f99cd4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user