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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user