processes plugin: Use STATIC_ARRAY_SIZE instead of numeric value.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 27 May 2008 14:53:14 +0000 (16:53 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 27 May 2008 14:53:14 +0000 (16:53 +0200)
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
 {