summaryrefslogtreecommitdiff
path: root/lib/zebra.h
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/zebra.h
parent0d019561bd855b6097b75d8d95a4dc69e410aae1 (diff)
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/zebra.h')
-rw-r--r--lib/zebra.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 7b83fed926..b1ea43c747 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -335,8 +335,6 @@ struct in_pktinfo {
#endif /* ndef BYTE_ORDER */
-#define ZEBRA_NUM_OF(x) (sizeof (x) / sizeof (x[0]))
-
/* For old definition. */
#ifndef IN6_ARE_ADDR_EQUAL
#define IN6_ARE_ADDR_EQUAL IN6_IS_ADDR_EQUAL