diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-12 04:19:11 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-12 04:19:11 +0000 |
commit | 077184fd502cafcd16156ba8d5028f8115e0fbd4 (patch) | |
tree | cf500b99c3360dc1eb6117c4132ef979a56379dd /testsuites/psxtests/psxhdrs/time05.c | |
parent | 2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-077184fd502cafcd16156ba8d5028f8115e0fbd4.tar.bz2 |
2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/time01.c, psxhdrs/time02.c, psxhdrs/time03.c,
psxhdrs/time04.c, psxhdrs/time05.c, psxhdrs/time06.c,
psxhdrs/time07.c, psxhdrs/time08.c, psxhdrs/time09.c,
psxhdrs/time10.c, psxhdrs/time11.c, psxhdrs/time12.c,
psxhdrs/time13.c: Let test() return values (avoid warnings).
Diffstat (limited to 'testsuites/psxtests/psxhdrs/time05.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/time05.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/time05.c b/testsuites/psxtests/psxhdrs/time05.c index 80963b0a46..3bbcc17543 100644 --- a/testsuites/psxtests/psxhdrs/time05.c +++ b/testsuites/psxtests/psxhdrs/time05.c @@ -18,9 +18,9 @@ #include <time.h> -void test( void ); +int test( void ); -void test( void ) +int test( void ) { size_t length; size_t max_length; @@ -30,4 +30,6 @@ void test( void ) max_length = sizeof( buffer ); length = strftime( buffer, max_length, "%A", ×truct ); + + return (length != 0); } |