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:
Ralf Corsepius
2004-11-22 10:38:22 +00:00
parent f4857b21e7
commit dda9a682e6
4 changed files with 11 additions and 7 deletions
+7
View File
@@ -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.
+1 -1
View File
@@ -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
-3
View File
@@ -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
);
+3 -3
View File
@@ -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] );
}
}