summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/pthread07.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-17 11:39:04 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-17 11:39:04 +0000
commit6e9634614bbdb7c1cfda1ed59252af85cdfe8913 (patch)
tree93b0f3a24531c0dc9b0aaccbcc13f064c9d1f9c4 /testsuites/psxtests/psxhdrs/pthread07.c
parent2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-6e9634614bbdb7c1cfda1ed59252af85cdfe8913.tar.bz2
2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/pthread01.c, psxhdrs/pthread02.c, psxhdrs/pthread03.c, psxhdrs/pthread04.c, psxhdrs/pthread05.c, psxhdrs/pthread06.c, psxhdrs/pthread07.c, psxhdrs/pthread09.c, psxhdrs/pthread10.c, psxhdrs/pthread11.c, psxhdrs/pthread12.c, psxhdrs/pthread13.c, psxhdrs/pthread14.c, psxhdrs/pthread15.c, psxhdrs/pthread16.c, psxhdrs/pthread17.c, psxhdrs/pthread18.c, psxhdrs/pthread19.c, psxhdrs/pthread20.c, psxhdrs/pthread21.c, psxhdrs/pthread22.c, psxhdrs/pthread23.c, psxhdrs/pthread24.c, psxhdrs/pthread25.c, psxhdrs/pthread26.c, psxhdrs/pthread27.c, psxhdrs/pthread28.c, psxhdrs/pthread29.c, psxhdrs/pthread30.c, psxhdrs/pthread34.c, psxhdrs/pthread35.c, psxhdrs/pthread36.c, psxhdrs/pthread37.c, psxhdrs/pthread38.c, psxhdrs/pthread39.c, psxhdrs/pthread40.c: Let test() return values (avoid warnings).
Diffstat (limited to 'testsuites/psxtests/psxhdrs/pthread07.c')
-rw-r--r--testsuites/psxtests/psxhdrs/pthread07.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/pthread07.c b/testsuites/psxtests/psxhdrs/pthread07.c
index d1e1f06ef5..bf5e964e6a 100644
--- a/testsuites/psxtests/psxhdrs/pthread07.c
+++ b/testsuites/psxtests/psxhdrs/pthread07.c
@@ -22,7 +22,7 @@
#error "rtems is supposed to have pthread_create"
#endif
-void test( void );
+int test( void );
void *test_task( void * arg );
void *test_task(
@@ -34,7 +34,7 @@ void *test_task(
return NULL;
}
-void test( void )
+int test( void )
{
pthread_t thread;
pthread_attr_t attribute;
@@ -42,4 +42,6 @@ void test( void )
int result;
result = pthread_create( &thread, &attribute, test_task, arg );
+
+ return result;
}