Code

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 d55c5f87bc6b25cfb90d9b8d23bbfedc3988c44f..177a9fbb81971714a9b2a4a4462542c734d91951 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
 {