projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
processes plugin: Use STATIC_ARRAY_SIZE instead of numeric value.
[collectd.git]
/
src
/
processes.c
diff --git
a/src/processes.c
b/src/processes.c
index
d55c5f8
..
177a9fb
100644
(file)
--- 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
{