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 /zebra/zebra_rib.c | |
| 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 'zebra/zebra_rib.c')
| -rw-r--r-- | zebra/zebra_rib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index e47499b065..e675ca0a7a 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -3482,7 +3482,7 @@ struct route_table *rib_tables_iter_next(rib_tables_iter_t *iter) while (1) { while (iter->afi_safi_ix - < (int)ZEBRA_NUM_OF(afi_safis)) { + < (int)array_size(afi_safis)) { table = zebra_vrf_table( afi_safis[iter->afi_safi_ix].afi, afi_safis[iter->afi_safi_ix].safi, |
