summaryrefslogtreecommitdiff
path: root/apps/examples
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-29 16:03:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-29 16:03:56 -0600
commit5160874dedc96959f4f1e68f32c6a634568c539e (patch)
tree52c6715a5e7d97e9bd6a9be51190d80cb58d8612 /apps/examples
parente66fe204e0f9eed047fccdbd7b7fd31f264a2bc7 (diff)
downloadnuttx-5160874dedc96959f4f1e68f32c6a634568c539e.tar.gz
nuttx-5160874dedc96959f4f1e68f32c6a634568c539e.tar.bz2
nuttx-5160874dedc96959f4f1e68f32c6a634568c539e.zip
First round of fixes for re-implemented VFS message queues
Diffstat (limited to 'apps/examples')
-rw-r--r--apps/examples/ostest/mqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/examples/ostest/mqueue.c b/apps/examples/ostest/mqueue.c
index b747af089..b5f1ffb56 100644
--- a/apps/examples/ostest/mqueue.c
+++ b/apps/examples/ostest/mqueue.c
@@ -130,7 +130,7 @@ static void *sender_thread(void *arg)
*/
g_send_mqfd = mq_open("mqueue", O_WRONLY|O_CREAT, 0666, &attr);
- if (g_send_mqfd < 0)
+ if (g_send_mqfd == (mqd_t)-1)
{
printf("sender_thread: ERROR mq_open failed\n");
pthread_exit((pthread_addr_t)1);
@@ -435,7 +435,7 @@ void mqueue_test(void)
if (g_send_mqfd)
{
- printf("mqueue_test: ERROR receive mqd_t left open\n");
+ printf("mqueue_test: ERROR receiver mqd_t left open\n");
if (mq_close(g_send_mqfd) < 0)
{
printf("sender_thread: ERROR mq_close failed\n");