mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
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:
committed by
Gregory Nutt
parent
41a4a40879
commit
626afb015b
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user