From 53d8cd78c055bf339d945dadbbe92b25027ab4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81yszczek?= Date: Fri, 15 Feb 2019 19:22:48 -0600 Subject: [PATCH] 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 --- system/nxplayer/nxplayer.c | 2 +- system/nxrecorder/nxrecorder.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c index 5d6932552..160b71166 100644 --- a/system/nxplayer/nxplayer.c +++ b/system/nxplayer/nxplayer.c @@ -781,10 +781,10 @@ static void *nxplayer_playthread(pthread_addr_t pvarg) #else FAR struct ap_buffer_s *pBuffers[CONFIG_AUDIO_NUM_BUFFERS]; #endif + unsigned int prio; #ifdef CONFIG_DEBUG_FEATURES int outstanding = 0; #endif - int prio; int x; int ret; diff --git a/system/nxrecorder/nxrecorder.c b/system/nxrecorder/nxrecorder.c index 670050293..f66eec543 100644 --- a/system/nxrecorder/nxrecorder.c +++ b/system/nxrecorder/nxrecorder.c @@ -259,10 +259,10 @@ static void *nxrecorder_recordthread(pthread_addr_t pvarg) #else FAR struct ap_buffer_s *pBuffers[CONFIG_AUDIO_NUM_BUFFERS]; #endif + unsigned int prio; #ifdef CONFIG_DEBUG_FEATURES int outstanding = 0; #endif - int prio; int x; int ret;