summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/timer01.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-12 04:15:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-12 04:15:32 +0000
commite7edd55890b554ca0db49403153d6d617d3081a8 (patch)
tree391606acccc0b4c1341b331a6390f878dec217b7 /testsuites/psxtests/psxhdrs/timer01.c
parent2011-10-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-e7edd55890b554ca0db49403153d6d617d3081a8.tar.bz2
2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/timer01.c, psxhdrs/timer02.c, psxhdrs/timer03.c, psxhdrs/timer04.c, psxhdrs/timer05.c, psxhdrs/timer06.c, psxhdrs/timer07.c: Let test() return values (avoid warnings).
Diffstat (limited to 'testsuites/psxtests/psxhdrs/timer01.c')
-rw-r--r--testsuites/psxtests/psxhdrs/timer01.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/timer01.c b/testsuites/psxtests/psxhdrs/timer01.c
index ad5a22f949..38cc0e186a 100644
--- a/testsuites/psxtests/psxhdrs/timer01.c
+++ b/testsuites/psxtests/psxhdrs/timer01.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have timer_create"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
clockid_t clock_id = 0;
timer_t timerid = 0;
@@ -39,4 +39,6 @@ void test( void )
evp.sigev_value.sival_ptr = NULL;
result = timer_create( clock_id, &evp, &timerid );
+
+ return result;
}