mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 21:35:30 +08:00
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.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
||||
2004-09-24 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* configure.ac: Require automake > 1.9.
|
||||
|
||||
@@ -20,7 +20,7 @@ RTEMS_CHECK_RTEMS_TEST_NO_PAUSE
|
||||
|
||||
RTEMS_PROJECT_ROOT
|
||||
|
||||
RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
|
||||
RTEMS_PROG_CC_FOR_TARGET([-fasm])
|
||||
|
||||
RTEMS_PROG_CXX_FOR_TARGET
|
||||
|
||||
|
||||
@@ -26,9 +26,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* putenv is beyond ANSI so prototype it here */
|
||||
int putenv(const char *string);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
);
|
||||
|
||||
@@ -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] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user