summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/mq_receive.c5
-rw-r--r--nuttx/sched/mq_send.c6
2 files changed, 5 insertions, 6 deletions
diff --git a/nuttx/sched/mq_receive.c b/nuttx/sched/mq_receive.c
index aab7847f1..9d1272ae9 100644
--- a/nuttx/sched/mq_receive.c
+++ b/nuttx/sched/mq_receive.c
@@ -87,7 +87,7 @@
* "mqdes." If the size of the buffer in bytes (msglen) is
* less than the "mq_msgsize" attribute of the message
* queue, mq_receive will return an error. Otherwise, the
- * select message is removed from the queue and copied to
+ * selected message is removed from the queue and copied to
* "msg."
*
* If the message queue is empty and O_NONBLOCK was not
@@ -103,8 +103,7 @@
* mqdes - Message Queue Descriptor
* msg - Buffer to receive the message
* msglen - Size of the buffer in bytes
- * prio - If not NULL, the location to store message
- * priority.
+ * prio - If not NULL, the location to store message priority.
*
* Return Value:
* One success, the length of the selected message in bytes.is
diff --git a/nuttx/sched/mq_send.c b/nuttx/sched/mq_send.c
index f8768c9a4..faa03e720 100644
--- a/nuttx/sched/mq_send.c
+++ b/nuttx/sched/mq_send.c
@@ -177,7 +177,7 @@ FAR mqmsg_t *mq_msgalloc(void)
* This length must not exceed the maximum message length
* from the mq_getattr().
*
- * If the message queue is not full, mq_send() will in the
+ * If the message queue is not full, mq_send() place the
* message in the message queue at the position indicated
* by the "prio" argrument. Messages with higher priority
* will be inserted before lower priority messages. The
@@ -198,8 +198,8 @@ FAR mqmsg_t *mq_msgalloc(void)
* prio - The priority of the message
*
* Return Value:
- * On success, mq_send() returns0 (OK); on error, -1 (ERROR)
- * is returned, with errno set to indicate the error:
+ * 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 message queue description referred to