memory plugin: constify
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 12:36:50 +0000 (13:36 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 12:36:50 +0000 (13:36 +0100)
src/memory.c

index ea16ce3..3d8a867 100644 (file)
@@ -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",