diff options
| author | Andrew Clayton <andrew@digital-domain.net> | 2022-06-09 22:34:34 +0100 |
|---|---|---|
| committer | Andrew Clayton <andrew@digital-domain.net> | 2022-06-15 21:14:25 +0100 |
| commit | 1956745549be6af6134825731caa5ce8aa99ca5c (patch) | |
| tree | 9c0720c1dd0b6c0ddefe27c80d4bf0521a6a8cb7 /src/nxt_port_memory_int.h | |
| parent | 6a8081d71e805b12d0f7fd32ce72d60babadfc85 (diff) | |
| download | unit-archive/constParameter.tar.gz unit-archive/constParameter.tar.bz2 | |
Constified numerous function parameters.archive/constParameter
As was pointed out by the cppcheck[0] static code analysis utility we
can mark numerous function parameters as 'const'. This acts 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_port_memory_int.h')
| -rw-r--r-- | src/nxt_port_memory_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_port_memory_int.h b/src/nxt_port_memory_int.h index c84615d5..21a05b10 100644 --- a/src/nxt_port_memory_int.h +++ b/src/nxt_port_memory_int.h @@ -100,7 +100,7 @@ nxt_inline void nxt_port_mmap_set_chunk_free(nxt_free_map_t *m, nxt_chunk_id_t c); nxt_inline nxt_chunk_id_t -nxt_port_mmap_chunk_id(nxt_port_mmap_header_t *hdr, u_char *p) +nxt_port_mmap_chunk_id(nxt_port_mmap_header_t *hdr, const u_char *p) { u_char *mm_start; |
