summaryrefslogtreecommitdiffstats
path: root/lib/sockunion.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-03-23 14:53:58 +0100
committerDavid Lamparter <equinox@diac24.net>2019-04-18 12:44:29 +0200
commit7e3a1ec742fab489eceeb23869063ebdedad12ff (patch)
treece44ea349dcc36685c2d9569e3882e444f870691 /lib/sockunion.c
parentlib: move/redo some macros (diff)
downloadfrr-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 'lib/sockunion.c')
-rw-r--r--lib/sockunion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sockunion.c b/lib/sockunion.c
index af4f41f37..bb5426d74 100644
--- a/lib/sockunion.c
+++ b/lib/sockunion.c
@@ -472,7 +472,7 @@ unsigned int sockunion_hash(const union sockunion *su)
return jhash_1word(su->sin.sin_addr.s_addr, 0);
case AF_INET6:
return jhash2(su->sin6.sin6_addr.s6_addr32,
- ZEBRA_NUM_OF(su->sin6.sin6_addr.s6_addr32), 0);
+ array_size(su->sin6.sin6_addr.s6_addr32), 0);
}
return 0;
}