From bb39fffab9734c9d1ee88ac465bbb47bda4f64bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 9 Dec 2014 21:57:07 +0100 Subject: ConfigParser: make the static arrays "const" --- src/config/ConfigParser.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/config/ConfigParser.cxx b/src/config/ConfigParser.cxx index 3535c9a13..da7d58e49 100644 --- a/src/config/ConfigParser.cxx +++ b/src/config/ConfigParser.cxx @@ -23,8 +23,8 @@ bool get_bool(const char *value, bool *value_r) { - static const char *t[] = { "yes", "true", "1", nullptr }; - static const char *f[] = { "no", "false", "0", nullptr }; + static const char *const t[] = { "yes", "true", "1", nullptr }; + static const char *const f[] = { "no", "false", "0", nullptr }; if (string_array_contains(t, value)) { *value_r = true; -- cgit v1.2.3