diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 14:51:10 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-25 14:51:10 -0600 |
commit | b845f19a3bb200e49a7a314787b3290e3155ce01 (patch) | |
tree | 51d3d2e4887b9a950b1e7d85c61359544c7f547c /apps/examples/ostest | |
parent | f7de6bbcbae818aff936bd71ee5268946ea9ad30 (diff) | |
download | nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.tar.gz nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.tar.bz2 nuttx-b845f19a3bb200e49a7a314787b3290e3155ce01.zip |
Fixes for more cppcheck complaints. Mostly cosmetic
Diffstat (limited to 'apps/examples/ostest')
-rw-r--r-- | apps/examples/ostest/aio.c | 4 | ||||
-rw-r--r-- | apps/examples/ostest/rmutex.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/ostest/aio.c b/apps/examples/ostest/aio.c index 68b94228f..5313c55a6 100644 --- a/apps/examples/ostest/aio.c +++ b/apps/examples/ostest/aio.c @@ -571,7 +571,7 @@ void aio_test(void) goto errout_with_fildes; } - printf(" aio_cancel return %d\n"); + printf(" aio_cancel return %d\n", ret); do { @@ -614,7 +614,7 @@ void aio_test(void) goto errout_with_fildes; } - printf(" aio_cancel return %d\n"); + printf(" aio_cancel return %d\n", ret); do { diff --git a/apps/examples/ostest/rmutex.c b/apps/examples/ostest/rmutex.c index 5456cddb7..62c64d48f 100644 --- a/apps/examples/ostest/rmutex.c +++ b/apps/examples/ostest/rmutex.c @@ -156,7 +156,7 @@ void recursive_mutex_test(void) { printf("recursive_mutex_test: Waiting for thread %d\n", i+1); #ifdef SDCC - pthread_join(thread[i], &result1); + pthread_join(thread[i], &result[i]); #else pthread_join(thread[i], NULL); #endif |