diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-11-22 10:38:22 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-11-22 10:38:22 +0000 |
commit | dda9a682e630749fc6c090b721d4095ac72abdef (patch) | |
tree | f35bcef29affd73e71f4f05db741b0607cb4b4a8 /testsuites/libtests/termios/init.c | |
parent | 2004-11-22 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-dda9a682e630749fc6c090b721d4095ac72abdef.tar.bz2 |
2004-11-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* configure.ac: Remove -ansi to prevent folks from further damaging
the code with broken prototypes.
* putenvtest/init.c: Remove broken putenv prototype.
* termios/init.c (print_c_cc): Don't loop over NCCS.
Diffstat (limited to '')
-rw-r--r-- | testsuites/libtests/termios/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testsuites/libtests/termios/init.c b/testsuites/libtests/termios/init.c index 1511899af0..214add8c33 100644 --- a/testsuites/libtests/termios/init.c +++ b/testsuites/libtests/termios/init.c @@ -401,8 +401,8 @@ void print_c_cflag( struct termios * tp ) void print_c_cc( struct termios * tp ) { - int i; - char * cc_index_names [NCCS] = { + size_t i; + char * cc_index_names [ /* NCCS */ ] = { "[VINTR] ", /* 0 */ "[VQUIT] ", /* 1 */ "[VERASE] ", /* 2 */ @@ -424,7 +424,7 @@ void print_c_cc( struct termios * tp ) "unknown ", /* 18 */ }; - for( i = 0; i < NCCS; i++ ) { + for( i = 0; i < sizeof(cc_index_names)/sizeof(char*) ; i++ ) { printf( "c_cc%s = 0x%08x\n", cc_index_names[i], tp->c_cc[i] ); } } |