summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/pthread32.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-05 14:53:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-05 16:01:04 +0200
commit5e2a66d5c9abd46fcfebe993ef130e87e05890e3 (patch)
treebd0e0edcfdc098ed1ab5adfd9a83368d70dafd8d /testsuites/psxtests/psxhdrs/pthread32.c
parentposix: Add comment (diff)
downloadrtems-5e2a66d5c9abd46fcfebe993ef130e87e05890e3.tar.bz2
psxtests/psxhdrs: Fix cleanup push/pop test
The pthread_cleanup_push() and pthread_cleanup_pop() statements must appear as a pair in the same lexical scope as required by POSIX.
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread32.c')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread32.c b/testsuites/psxtests/psxhdrs/pthread32.c
index 99cf78bc0f..ccc4f68757 100644
--- a/testsuites/psxtests/psxhdrs/pthread32.c
+++ b/testsuites/psxtests/psxhdrs/pthread32.c
@@ -27,6 +27,7 @@ void cleanup_routine(
void *argument
)
{
+ (void) argument;
}
void test( void )
@@ -36,4 +37,5 @@ void test( void )
argument = 0;
pthread_cleanup_push( cleanup_routine, &argument );
+ pthread_cleanup_pop( 1 );
}