summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-11-22 10:38:22 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-11-22 10:38:22 +0000
commitdda9a682e630749fc6c090b721d4095ac72abdef (patch)
treef35bcef29affd73e71f4f05db741b0607cb4b4a8 /testsuites
parent2004-11-22 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-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 'testsuites')
-rw-r--r--testsuites/libtests/ChangeLog7
-rw-r--r--testsuites/libtests/configure.ac2
-rw-r--r--testsuites/libtests/putenvtest/init.c3
-rw-r--r--testsuites/libtests/termios/init.c6
4 files changed, 11 insertions, 7 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog
index 2d89a9353e..95e04be17c 100644
--- a/testsuites/libtests/ChangeLog
+++ b/testsuites/libtests/ChangeLog
@@ -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.
diff --git a/testsuites/libtests/configure.ac b/testsuites/libtests/configure.ac
index abf10fc6a3..dd11c4b4a2 100644
--- a/testsuites/libtests/configure.ac
+++ b/testsuites/libtests/configure.ac
@@ -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
diff --git a/testsuites/libtests/putenvtest/init.c b/testsuites/libtests/putenvtest/init.c
index 7b79860c53..792e688dcf 100644
--- a/testsuites/libtests/putenvtest/init.c
+++ b/testsuites/libtests/putenvtest/init.c
@@ -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
);
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] );
}
}