mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 03:47:47 +00:00
*: 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;
|
long mm;
|
||||||
int wr;
|
int wr;
|
||||||
|
|
||||||
zassert(buf_size >= 8);
|
assert(buf_size >= 8);
|
||||||
|
|
||||||
hh = sec / 3600;
|
hh = sec / 3600;
|
||||||
sec %= 3600;
|
sec %= 3600;
|
||||||
|
@ -72,7 +72,7 @@ static void nhrp_cache_free(struct nhrp_cache *c)
|
|||||||
debugf(NHRP_DEBUG_COMMON, "Deleting cache entry");
|
debugf(NHRP_DEBUG_COMMON, "Deleting cache entry");
|
||||||
nhrp_cache_counts[c->cur.type]--;
|
nhrp_cache_counts[c->cur.type]--;
|
||||||
notifier_call(&c->notifier_list, NOTIFY_CACHE_DELETE);
|
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);
|
hash_release(nifp->cache_hash, c);
|
||||||
THREAD_OFF(c->t_timeout);
|
THREAD_OFF(c->t_timeout);
|
||||||
THREAD_OFF(c->t_auth);
|
THREAD_OFF(c->t_auth);
|
||||||
|
@ -59,7 +59,7 @@ void zbuf_reset(struct zbuf *zb)
|
|||||||
|
|
||||||
void zbuf_reset_head(struct zbuf *zb, void *ptr)
|
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;
|
zb->head = ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,8 +50,8 @@ struct pbr_interface *pbr_if_new(struct interface *ifp)
|
|||||||
{
|
{
|
||||||
struct pbr_interface *pbr_ifp;
|
struct pbr_interface *pbr_ifp;
|
||||||
|
|
||||||
zassert(ifp);
|
assert(ifp);
|
||||||
zassert(!ifp->info);
|
assert(!ifp->info);
|
||||||
|
|
||||||
pbr_ifp = XCALLOC(MTYPE_PBR_INTERFACE, sizeof(*pbr_ifp));
|
pbr_ifp = XCALLOC(MTYPE_PBR_INTERFACE, sizeof(*pbr_ifp));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user