summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/barrier.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-02-10 19:11:56 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-02-10 19:11:56 -0600
commit797e41438176de465272bef182e035cd0fe5884a (patch)
tree3af4825ad5b2c3bd579305d025c35d6a3b96c9a1 /apps/examples/ostest/barrier.c
parent6db1f6f71c8867cbae3a2c5597b01f321064a370 (diff)
downloadnuttx-797e41438176de465272bef182e035cd0fe5884a.tar.gz
nuttx-797e41438176de465272bef182e035cd0fe5884a.tar.bz2
nuttx-797e41438176de465272bef182e035cd0fe5884a.zip
More changes to reduce complaints from CppCheck. Some latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'apps/examples/ostest/barrier.c')
-rw-r--r--apps/examples/ostest/barrier.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/ostest/barrier.c b/apps/examples/ostest/barrier.c
index e66496f7b..9de96ceaf 100644
--- a/apps/examples/ostest/barrier.c
+++ b/apps/examples/ostest/barrier.c
@@ -83,13 +83,13 @@ static void *barrier_func(void *parameter)
{
printf("barrier_func: Thread %d, back with "
"status=0 (I am not special)\n",
- id, status);
+ id);
}
else if (status == PTHREAD_BARRIER_SERIAL_THREAD)
{
printf("barrier_func: Thread %d, back with "
"status=PTHREAD_BARRIER_SERIAL_THREAD (I AM SPECIAL)\n",
- id, status);
+ id);
}
else
{
@@ -142,7 +142,7 @@ void barrier_test(void)
/* Create the barrier */
- status = pthread_barrierattr_init(&barrierattr);
+ (void)pthread_barrierattr_init(&barrierattr);
/* Start CONFIG_EXAMPLES_OSTEST_NBARRIER_THREADS thread instances */