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 /lib/zebra.h | |
| parent | 0d019561bd855b6097b75d8d95a4dc69e410aae1 (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.h | 2 |
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 |
