summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/pthread18.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread18.c')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread18.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread18.c b/testsuites/psxtests/psxhdrs/pthread18.c
index 13020ebe05..d0bc614e80 100644
--- a/testsuites/psxtests/psxhdrs/pthread18.c
+++ b/testsuites/psxtests/psxhdrs/pthread18.c
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getschedpolicy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int policy;
int result;
result = pthread_attr_getschedpolicy( &attr, &policy );
+
+ return result;
}