From: Ruben Kerkhof Date: Fri, 4 Mar 2016 19:57:04 +0000 (+0100) Subject: ascent plugin: constify X-Git-Tag: collectd-5.6.0~442 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=082b822b3e75f07074dd9231aae8ab63fd51edb4;p=collectd.git ascent plugin: constify --- diff --git a/src/ascent.c b/src/ascent.c index 2ba3c772..d38e8591 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -32,7 +32,7 @@ #include #include -static char *races_list[] = /* {{{ */ +static const char *races_list[] = /* {{{ */ { NULL, "Human", /* 1 */ @@ -49,7 +49,7 @@ static char *races_list[] = /* {{{ */ }; /* }}} */ #define RACES_LIST_LENGTH STATIC_ARRAY_SIZE (races_list) -static char *classes_list[] = /* {{{ */ +static const char *classes_list[] = /* {{{ */ { NULL, "Warrior", /* 1 */ @@ -66,7 +66,7 @@ static char *classes_list[] = /* {{{ */ }; /* }}} */ #define CLASSES_LIST_LENGTH STATIC_ARRAY_SIZE (classes_list) -static char *genders_list[] = /* {{{ */ +static const char *genders_list[] = /* {{{ */ { "Male", "Female"