processes plugin: Use STATIC_ARRAY_SIZE instead of numeric value.
[collectd.git] / src / processes.c
index d55c5f8..177a9fb 100644 (file)
@@ -107,7 +107,7 @@ static const char *config_keys[] =
        "ProcessMatch",
        NULL
 };
-static int config_keys_num = 2;
+static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
 
 typedef struct procstat_entry_s
 {