/* message queue handling Function: struct msgqueue_entry *mqe_alloc(MsgQueue_t *msgq) Purpose : Allocate a message queue entry Params : msgq - message queue to claim entry for Returns : message queue entry or NULL.  */
static struct msgqueue_entry* mqe_alloc(MsgQueue_t *msgq)
/* message queue handling Function: struct msgqueue_entry *mqe_alloc(MsgQueue_t *msgq) Purpose : Allocate a message queue entry Params : msgq - message queue to claim entry for Returns : message queue entry or NULL.  */
static struct msgqueue_entry* mqe_alloc(MsgQueue_t *msgq)
{
	struct msgqueue_entry *mq;
	if ((mq = msgq->free) != NULL)
		msgq->free = mq->next;
	return mq;
}