apps: update mqueue_open usage
As the mqd_t change to int Change-Id: I16a9c137b6308eeec0badd241a101359e5f751b4 Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
135c5f61e1
commit
ef0c6b30c4
@ -180,7 +180,7 @@ static void *receiver_thread(void *arg)
|
||||
*/
|
||||
|
||||
g_recv_mqfd = mq_open("mqueue", O_RDONLY | O_CREAT, 0666, &attr);
|
||||
if (g_recv_mqfd < 0)
|
||||
if (g_recv_mqfd == (mqd_t)-1)
|
||||
{
|
||||
printf("receiver_thread: ERROR mq_open failed\n");
|
||||
pthread_exit((pthread_addr_t)1);
|
||||
@ -259,7 +259,7 @@ static void *receiver_thread(void *arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_recv_mqfd = NULL;
|
||||
g_recv_mqfd = 0;
|
||||
}
|
||||
|
||||
printf("receiver_thread: returning nerrors=%d\n", nerrors);
|
||||
|
@ -188,7 +188,7 @@ static void *sender_thread(void *arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_send_mqfd = NULL;
|
||||
g_send_mqfd = 0;
|
||||
}
|
||||
|
||||
printf("sender_thread: returning nerrors=%d\n", nerrors);
|
||||
@ -314,7 +314,7 @@ static void *receiver_thread(void *arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_recv_mqfd = NULL;
|
||||
g_recv_mqfd = 0;
|
||||
}
|
||||
|
||||
printf("receiver_thread: returning nerrors=%d\n", nerrors);
|
||||
|
Loading…
x
Reference in New Issue
Block a user