summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-09 21:57:07 +0100
committerMax Kellermann <max@duempel.org>2014-12-09 21:57:07 +0100
commitbb39fffab9734c9d1ee88ac465bbb47bda4f64bb (patch)
treec52ba433d499d664809dff4f994610a59e17aab9
parentf52aefb34193cad315e283245c1ea9fb5b08fe4c (diff)
ConfigParser: make the static arrays "const"
-rw-r--r--src/config/ConfigParser.cxx4
1 files changed, 2 insertions, 2 deletions
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;