diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2021-04-23 11:23:57 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2021-04-23 12:25:47 +0200 | 
| commit | df5dfb77b5c38fc1c5b242b3df1f4bc9b3e02869 (patch) | |
| tree | 3e55d2c4d7154bed6ad54e03086ad178873173fc /pimd/pim_pim.c | |
| parent | 6a0eb6885b80260294673078dc97eb47b9ad753f (diff) | |
pimd: zassert => assert
No point in having pimd use zassert() while everything else uses plain
assert().
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_pim.c')
| -rw-r--r-- | pimd/pim_pim.c | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index 2ccff8b84a..4ba08a19d8 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -407,8 +407,8 @@ static void pim_sock_read_on(struct interface *ifp)  {  	struct pim_interface *pim_ifp; -	zassert(ifp); -	zassert(ifp->info); +	assert(ifp); +	assert(ifp->info);  	pim_ifp = ifp->info; @@ -444,7 +444,7 @@ void pim_ifstat_reset(struct interface *ifp)  {  	struct pim_interface *pim_ifp; -	zassert(ifp); +	assert(ifp);  	pim_ifp = ifp->info;  	if (!pim_ifp) { @@ -462,8 +462,8 @@ void pim_sock_reset(struct interface *ifp)  {  	struct pim_interface *pim_ifp; -	zassert(ifp); -	zassert(ifp->info); +	assert(ifp); +	assert(ifp->info);  	pim_ifp = ifp->info; @@ -671,8 +671,8 @@ static int hello_send(struct interface *ifp, uint16_t holdtime)  	pim_msg_size = pim_tlv_size + PIM_PIM_MIN_LEN; -	zassert(pim_msg_size >= PIM_PIM_MIN_LEN); -	zassert(pim_msg_size <= PIM_PIM_BUFSIZE_WRITE); +	assert(pim_msg_size >= PIM_PIM_MIN_LEN); +	assert(pim_msg_size <= PIM_PIM_BUFSIZE_WRITE);  	pim_msg_build_header(pim_msg, pim_msg_size, PIM_MSG_TYPE_HELLO, false); @@ -846,7 +846,7 @@ int pim_sock_add(struct interface *ifp)  	uint32_t old_genid;  	pim_ifp = ifp->info; -	zassert(pim_ifp); +	assert(pim_ifp);  	if (pim_ifp->pim_sock_fd >= 0) {  		if (PIM_DEBUG_PIM_PACKETS)  | 
