nuttx/sched/mqueue: Change 'int prio' to 'unsigned int prio'. According to open group specification, priority field in mq_* functions should have unsigned type: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/mqueue.h.html

This commit is contained in:
Michał Łyszczek
2019-02-15 19:18:55 -06:00
committed by Gregory Nutt
parent 41a4a40879
commit 626afb015b
16 changed files with 44 additions and 35 deletions
+2 -2
View File
@@ -145,7 +145,7 @@ int bt_queue_receive(mqd_t mqd, FAR struct bt_buf_s **buf)
} u;
ssize_t msgsize;
int priority;
unsigned int priority;
DEBUGASSERT(mqd != NULL && buf != NULL);
@@ -192,7 +192,7 @@ int bt_queue_receive(mqd_t mqd, FAR struct bt_buf_s **buf)
*
****************************************************************************/
int bt_queue_send(mqd_t mqd, FAR struct bt_buf_s *buf, int priority)
int bt_queue_send(mqd_t mqd, FAR struct bt_buf_s *buf, unsigned int priority)
{
struct bt_bufmsg_s msg;
int ret;
+1 -1
View File
@@ -140,6 +140,6 @@ int bt_queue_receive(mqd_t mqd, FAR struct bt_buf_s **buf);
*
****************************************************************************/
int bt_queue_send(mqd_t mqd, FAR struct bt_buf_s *buf, int priority);
int bt_queue_send(mqd_t mqd, FAR struct bt_buf_s *buf, unsigned int priority);
#endif /* __WIRELESS_BLUETOOTH_BT_QUEUE_H */