summaryrefslogtreecommitdiffstats
path: root/lib/privs.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/privs.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/privs.c')
-rw-r--r--lib/privs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/privs.c b/lib/privs.c
index 59f24afe4..50f80e3c0 100644
--- a/lib/privs.c
+++ b/lib/privs.c
@@ -854,7 +854,7 @@ void zprivs_init(struct zebra_privs_t *zprivs)
zprivs->user, zprivs->vty_group);
exit(1);
}
- if (i >= ngroups && ngroups < (int)ZEBRA_NUM_OF(groups)) {
+ if (i >= ngroups && ngroups < (int)array_size(groups)) {
groups[i] = zprivs_state.vtygrp;
}
}