From: Ruben Kerkhof Date: Sat, 5 Mar 2016 12:36:50 +0000 (+0100) Subject: memory plugin: constify X-Git-Tag: collectd-5.6.0~427 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d3a662b17b4f1a6638ac56ef06c7de52dd4f0a97;p=collectd.git memory plugin: constify --- diff --git a/src/memory.c b/src/memory.c index ea16ce31..3d8a867a 100644 --- a/src/memory.c +++ b/src/memory.c @@ -237,7 +237,7 @@ static int memory_read_internal (value_list_t *vl) * vm.stats.vm.v_inactive_count: 113730 * vm.stats.vm.v_cache_count: 10809 */ - char *sysctl_keys[8] = + const char *sysctl_keys[8] = { "vm.stats.vm.v_page_size", "vm.stats.vm.v_page_count",