From dda9a682e630749fc6c090b721d4095ac72abdef Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 22 Nov 2004 10:38:22 +0000 Subject: 2004-11-22 Ralf Corsepius * 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. --- testsuites/libtests/termios/init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuites/libtests/termios/init.c') 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] ); } } -- cgit v1.2.3