mirror of https://github.com/FRRouting/frr.git
*: remaining zassert => assert
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
df5dfb77b5
commit
642ac49da4
|
@ -664,7 +664,7 @@ static int time_hhmmss(char *buf, int buf_size, long sec)
|
|||
long mm;
|
||||
int wr;
|
||||
|
||||
zassert(buf_size >= 8);
|
||||
assert(buf_size >= 8);
|
||||
|
||||
hh = sec / 3600;
|
||||
sec %= 3600;
|
||||
|
|
|
@ -72,7 +72,7 @@ static void nhrp_cache_free(struct nhrp_cache *c)
|
|||
debugf(NHRP_DEBUG_COMMON, "Deleting cache entry");
|
||||
nhrp_cache_counts[c->cur.type]--;
|
||||
notifier_call(&c->notifier_list, NOTIFY_CACHE_DELETE);
|
||||
zassert(!notifier_active(&c->notifier_list));
|
||||
assert(!notifier_active(&c->notifier_list));
|
||||
hash_release(nifp->cache_hash, c);
|
||||
THREAD_OFF(c->t_timeout);
|
||||
THREAD_OFF(c->t_auth);
|
||||
|
|
|
@ -59,7 +59,7 @@ void zbuf_reset(struct zbuf *zb)
|
|||
|
||||
void zbuf_reset_head(struct zbuf *zb, void *ptr)
|
||||
{
|
||||
zassert((void *)zb->buf <= ptr && ptr <= (void *)zb->tail);
|
||||
assert((void *)zb->buf <= ptr && ptr <= (void *)zb->tail);
|
||||
zb->head = ptr;
|
||||
}
|
||||
|
||||
|
|
|
@ -50,8 +50,8 @@ struct pbr_interface *pbr_if_new(struct interface *ifp)
|
|||
{
|
||||
struct pbr_interface *pbr_ifp;
|
||||
|
||||
zassert(ifp);
|
||||
zassert(!ifp->info);
|
||||
assert(ifp);
|
||||
assert(!ifp->info);
|
||||
|
||||
pbr_ifp = XCALLOC(MTYPE_PBR_INTERFACE, sizeof(*pbr_ifp));
|
||||
|
||||
|
|
Loading…
Reference in New Issue