summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/cond06.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/cond06.c')
-rw-r--r--testsuites/psxtests/psxhdrs/cond06.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/cond06.c b/testsuites/psxtests/psxhdrs/cond06.c
index b13697b252..6ed1bc5a8c 100644
--- a/testsuites/psxtests/psxhdrs/cond06.c
+++ b/testsuites/psxtests/psxhdrs/cond06.c
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_cond_wait"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_cond_wait( &cond, &mutex );
+
+ return result;
}