diff options
Diffstat (limited to 'nuttx/sched/mq_sndinternal.c')
-rw-r--r-- | nuttx/sched/mq_sndinternal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/sched/mq_sndinternal.c b/nuttx/sched/mq_sndinternal.c index 09d56333b..ec5d8a27e 100644 --- a/nuttx/sched/mq_sndinternal.c +++ b/nuttx/sched/mq_sndinternal.c @@ -227,7 +227,7 @@ FAR mqmsg_t *mq_msgalloc(void) * mqdes - Message queue descriptor * * Return Value: - * On success, mq_waitmqnotfull() returns 0 (OK); on error, -1 (ERROR) is + * On success, mq_send() returns 0 (OK); on error, -1 (ERROR) is * returned, with errno set to indicate the error: * * EAGAIN The queue was empty, and the O_NONBLOCK flag was set for the @@ -285,7 +285,7 @@ int mq_waitsend(mqd_t mqdes) rtcb = (FAR _TCB*)g_readytorun.head; rtcb->msgwaitq = msgq; - (msgq->nwaitnotfull)++; + (msgq->nwaitnotempty)++; *get_errno_ptr() = OK; up_block_task(rtcb, TSTATE_WAIT_MQNOTFULL); |