Commit bb39fffa authored by Max Kellermann's avatar Max Kellermann

ConfigParser: make the static arrays "const"

parent f52aefb3
...@@ -23,8 +23,8 @@ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment