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:
parent
ee3787e4a0
commit
625832aa59
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user