diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 19:11:56 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 19:11:56 -0600 |
commit | 797e41438176de465272bef182e035cd0fe5884a (patch) | |
tree | 3af4825ad5b2c3bd579305d025c35d6a3b96c9a1 /apps/examples/ostest | |
parent | 6db1f6f71c8867cbae3a2c5597b01f321064a370 (diff) | |
download | nuttx-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')
-rw-r--r-- | apps/examples/ostest/barrier.c | 6 |
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 */ |