summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/termios/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/libtests/termios/init.c')
-rw-r--r--testsuites/libtests/termios/init.c6
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] );
}
}