ConfigParser: make the static arrays "const"
This commit is contained in:
parent
f52aefb341
commit
bb39fffab9
@ -23,8 +23,8 @@
|
|||||||
bool
|
bool
|
||||||
get_bool(const char *value, bool *value_r)
|
get_bool(const char *value, bool *value_r)
|
||||||
{
|
{
|
||||||
static const char *t[] = { "yes", "true", "1", nullptr };
|
static const char *const t[] = { "yes", "true", "1", nullptr };
|
||||||
static const char *f[] = { "no", "false", "0", nullptr };
|
static const char *const f[] = { "no", "false", "0", nullptr };
|
||||||
|
|
||||||
if (string_array_contains(t, value)) {
|
if (string_array_contains(t, value)) {
|
||||||
*value_r = true;
|
*value_r = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user