This is an automated email from the ASF dual-hosted git repository. btashton pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 625832aa594c8ec369815806031005d1a36fbd9d Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Fri Jan 1 00:35:07 2021 +0800 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 <xiaoxi...@xiaomi.com> --- testing/ostest/mqueue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/ostest/mqueue.c b/testing/ostest/mqueue.c index 68938ce..6bff72a 100644 --- a/testing/ostest/mqueue.c +++ b/testing/ostest/mqueue.c @@ -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 */