From: Ruben Kerkhof Date: Sat, 5 Mar 2016 15:55:24 +0000 (+0100) Subject: utils_rrdcreate.c: constify X-Git-Tag: collectd-5.6.0~417 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=591c55cdb4e56f229d27d93a28a75e8a506def15;p=collectd.git utils_rrdcreate.c: constify --- diff --git a/src/utils_rrdcreate.c b/src/utils_rrdcreate.c index 39f42b20..06e4f21b 100644 --- a/src/utils_rrdcreate.c +++ b/src/utils_rrdcreate.c @@ -62,7 +62,7 @@ static int rra_timespans[] = }; static int rra_timespans_num = STATIC_ARRAY_SIZE (rra_timespans); -static char *rra_types[] = +static const char *const rra_types[] = { "AVERAGE", "MIN", @@ -305,7 +305,7 @@ static int ds_get (char ***ret, /* {{{ */ for (ds_num = 0; ds_num < ds->ds_num; ds_num++) { data_source_t *d = ds->ds + ds_num; - char *type; + const char *type; int status; ds_def[ds_num] = NULL;