diff options
author | David Lamparter <equinox@diac24.net> | 2019-03-23 14:53:58 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-04-18 12:44:29 +0200 |
commit | 7e3a1ec742fab489eceeb23869063ebdedad12ff (patch) | |
tree | ce44ea349dcc36685c2d9569e3882e444f870691 /nhrpd/resolver.c | |
parent | lib: move/redo some macros (diff) | |
download | frr-7e3a1ec742fab489eceeb23869063ebdedad12ff.tar.xz frr-7e3a1ec742fab489eceeb23869063ebdedad12ff.zip |
lib: ZEBRA_NUM_OF -> array_size
The latter is widely used, e.g. in the Linux kernel.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'nhrpd/resolver.c')
-rw-r--r-- | nhrpd/resolver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/resolver.c b/nhrpd/resolver.c index 830f0e1c8..64b16e7ee 100644 --- a/nhrpd/resolver.c +++ b/nhrpd/resolver.c @@ -171,7 +171,7 @@ static void ares_address_cb(void *arg, int status, int timeouts, return; } - for (i = 0; i < ZEBRA_NUM_OF(addr) && he->h_addr_list[i] != NULL; i++) { + for (i = 0; i < array_size(addr) && he->h_addr_list[i] != NULL; i++) { memset(&addr[i], 0, sizeof(addr[i])); addr[i].sa.sa_family = he->h_addrtype; switch (he->h_addrtype) { |