diff options
Diffstat (limited to 'lib/imsg.c')
-rw-r--r-- | lib/imsg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/imsg.c b/lib/imsg.c index 935d13772..57e70617d 100644 --- a/lib/imsg.c +++ b/lib/imsg.c @@ -18,6 +18,7 @@ #include <zebra.h> +#include "memory.h" #include "queue.h" #include "imsg.h" @@ -35,7 +36,7 @@ static int available_fds(unsigned int n) unsigned int i; int ret, fds[256]; - if (n > (sizeof(fds) / sizeof(fds[0]))) + if (n > (unsigned int)array_size(fds)) return (1); ret = 0; |