diff --git a/system/nxlooper/nxlooper.c b/system/nxlooper/nxlooper.c index 57e7ac44e..ac0d0b2ae 100644 --- a/system/nxlooper/nxlooper.c +++ b/system/nxlooper/nxlooper.c @@ -1051,7 +1051,7 @@ int nxlooper_loopraw(FAR struct nxlooper_s *plooper, (unsigned long)((uintptr_t)plooper)); plooper->mq = mq_open(plooper->mqname, O_RDWR | O_CREAT, 0644, &attr); - if (plooper->mq == NULL) + if (plooper->mq == (mqd_t) -1) { /* Unable to open message queue! */ @@ -1166,7 +1166,7 @@ FAR struct nxlooper_s *nxlooper_create(void) plooper->playdev[0] = '\0'; plooper->recorddev[0] = '\0'; #endif - plooper->mq = NULL; + plooper->mq = 0; plooper->loop_id = 0; plooper->crefs = 1; diff --git a/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c index d3626245d..bdddded5a 100644 --- a/system/nxplayer/nxplayer.c +++ b/system/nxplayer/nxplayer.c @@ -1954,7 +1954,7 @@ static int nxplayer_playinternal(FAR struct nxplayer_s *pplayer, (unsigned long)((uintptr_t)pplayer)); pplayer->mq = mq_open(pplayer->mqname, O_RDWR | O_CREAT, 0644, &attr); - if (pplayer->mq == NULL) + if (pplayer->mq == (mqd_t) -1) { /* Unable to open message queue! */ @@ -2148,7 +2148,7 @@ FAR struct nxplayer_s *nxplayer_create(void) pplayer->prefformat = 0; pplayer->preftype = 0; #endif - pplayer->mq = NULL; + pplayer->mq = 0; pplayer->play_id = 0; pplayer->crefs = 1; diff --git a/system/nxrecorder/nxrecorder.c b/system/nxrecorder/nxrecorder.c index e60762fd3..d34b722c3 100644 --- a/system/nxrecorder/nxrecorder.c +++ b/system/nxrecorder/nxrecorder.c @@ -866,7 +866,7 @@ int nxrecorder_recordraw(FAR struct nxrecorder_s *precorder, (unsigned long)((uintptr_t)precorder)); precorder->mq = mq_open(precorder->mqname, O_RDWR | O_CREAT, 0644, &attr); - if (precorder->mq == NULL) + if (precorder->mq == (mqd_t) -1) { /* Unable to open message queue! */ @@ -968,7 +968,7 @@ FAR struct nxrecorder_s *nxrecorder_create(void) precorder->dev_fd = -1; precorder->fd = -1; precorder->device[0] = '\0'; - precorder->mq = NULL; + precorder->mq = 0; precorder->record_id = 0; precorder->crefs = 1;