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.
This commit is contained in:
Alejandro Colomar
2021-12-19 01:53:27 +01:00
parent 8138d15f76
commit 940d695f82
2 changed files with 3 additions and 2 deletions

View File

@@ -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;