diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-12-19 01:53:27 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2022-04-26 12:38:48 +0200 |
commit | 940d695f827eaffd19723429732c07e2dc7fb467 (patch) | |
tree | e27fbaacc6c361c1079a7711f17ddcf43cbb7a37 /src/nxt_conf.c | |
parent | 8138d15f76b1017ba61273f69416ffbe028b0d67 (diff) | |
download | unit-940d695f827eaffd19723429732c07e2dc7fb467.tar.gz unit-940d695f827eaffd19723429732c07e2dc7fb467.tar.bz2 |
Added 'const' for read-only function parameter.
That parameter is not being modified in the function. Make it
'const' to allow passing 'static const' variables.
Diffstat (limited to 'src/nxt_conf.c')
-rw-r--r-- | src/nxt_conf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nxt_conf.c b/src/nxt_conf.c index 1aca0a7e..8546e2b7 100644 --- a/src/nxt_conf.c +++ b/src/nxt_conf.c @@ -192,7 +192,8 @@ nxt_conf_set_string(nxt_conf_value_t *value, nxt_str_t *str) nxt_int_t -nxt_conf_set_string_dup(nxt_conf_value_t *value, nxt_mp_t *mp, nxt_str_t *str) +nxt_conf_set_string_dup(nxt_conf_value_t *value, nxt_mp_t *mp, + const nxt_str_t *str) { nxt_str_t tmp, *ptr; |