summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/pthread38.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread38.c')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread38.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread38.c b/testsuites/psxtests/psxhdrs/pthread38.c
index 3be1516763..44c300ac6f 100644
--- a/testsuites/psxtests/psxhdrs/pthread38.c
+++ b/testsuites/psxtests/psxhdrs/pthread38.c
@@ -28,9 +28,9 @@
#error "rtems is supposed to have pthread_getstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
@@ -38,5 +38,7 @@ void test( void )
int result;
result = pthread_attr_getstack( &attribute, &stackaddr, &stacksize );
+
+ return result;
}
#endif