ostest: Don't assign NULL to mq_t varaibles

change to 0 instead since mq_t mayn't be a pointer

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-01-01 00:35:07 +08:00 committed by Brennan Ashton
parent ee3787e4a0
commit 625832aa59

View File

@ -144,7 +144,7 @@ static void *sender_thread(void *arg)
}
else
{
g_send_mqfd = NULL;
g_send_mqfd = 0;
}
printf("sender_thread: returning nerrors=%d\n", nerrors);
@ -274,8 +274,8 @@ void mqueue_test(void)
/* Reset globals for the beginning of the test */
g_send_mqfd = NULL;
g_recv_mqfd = NULL;
g_send_mqfd = 0;
g_recv_mqfd = 0;
/* Start the sending thread at higher priority */