static inline void mq_init(struct capilib_ncci * np)
{
u_int i;
- np->msgidqueue = NULL;
- np->msgidlast = NULL;
+ np->msgidqueue = 0;
+ np->msgidlast = 0;
np->nmsg = 0;
memset(np->msgidpool, 0, sizeof(np->msgidpool));
np->msgidfree = &np->msgidpool[0];
return 0;
np->msgidfree = mq->next;
mq->msgid = msgid;
- mq->next = NULL;
+ mq->next = 0;
if (np->msgidlast)
np->msgidlast->next = mq;
np->msgidlast = mq;
struct capilib_msgidqueue *mq = *pp;
*pp = mq->next;
if (mq == np->msgidlast)
- np->msgidlast = NULL;
+ np->msgidlast = 0;
mq->next = np->msgidfree;
np->msgidfree = mq;
np->nmsg--;