From: Florian Forster Date: Tue, 27 May 2008 14:53:14 +0000 (+0200) Subject: processes plugin: Use STATIC_ARRAY_SIZE instead of numeric value. X-Git-Tag: collectd-4.5.0~140 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ec9abb566017d406745f5f263b55792f89cede1a;p=collectd.git processes plugin: Use STATIC_ARRAY_SIZE instead of numeric value. --- diff --git a/src/processes.c b/src/processes.c index d55c5f87..177a9fbb 100644 --- a/src/processes.c +++ b/src/processes.c @@ -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 {