diff options
author | Balaji.G <balajig81@gmail.com> | 2012-09-26 14:09:10 +0530 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2012-10-25 10:15:59 -0700 |
commit | 837d16ccbe0fca413f8927da6a34b1e97ccada8a (patch) | |
tree | 7aed5a517b619c03d11bf567f6a14cda6f8f5efe /watchquagga | |
parent | 655071f44aab42e89bcece3a93da456fdd0d913a (diff) |
*: 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>
Diffstat (limited to 'watchquagga')
-rw-r--r-- | watchquagga/watchquagga.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/watchquagga/watchquagga.c b/watchquagga/watchquagga.c index b57fd3ae..c1c88921 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 @@ main(int argc, char **argv) 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)); { |