summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/cond07.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/cond07.c')
-rw-r--r--testsuites/psxtests/psxhdrs/cond07.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/cond07.c b/testsuites/psxtests/psxhdrs/cond07.c
index f91c82a02c..01d00960e0 100644
--- a/testsuites/psxtests/psxhdrs/cond07.c
+++ b/testsuites/psxtests/psxhdrs/cond07.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_cond_timedwait"
#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;
@@ -32,4 +32,6 @@ void test( void )
int result;
result = pthread_cond_timedwait( &cond, &mutex, &abstime );
+
+ return result;
}