*: use array_size() helper macro
Use the array_size() helper macro. Replaces several instances of local
macros with the same definition.
Reviewed-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/watchquagga/watchquagga.c b/watchquagga/watchquagga.c
index b57fd3a..c1c8892 100644
--- a/watchquagga/watchquagga.c
+++ b/watchquagga/watchquagga.c
@@ -27,6 +27,7 @@
#include <getopt.h>
#include <sys/un.h>
#include <sys/wait.h>
+#include <memory.h>
#ifndef MIN
#define MIN(X,Y) (((X) <= (Y)) ? (X) : (Y))
@@ -1279,7 +1280,7 @@
gs.restart.interval = gs.min_restart_interval;
master = thread_master_create();
- signal_init (master, Q_SIGC(my_signals), my_signals);
+ signal_init (master, array_size(my_signals), my_signals);
srandom(time(NULL));
{