summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-12 16:27:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-12 16:27:00 +0000
commit438997f6a415d21fc20cfcfa2f1e14f1f04062c5 (patch)
treecc06e4df9b528474adab9416fd51304bdb94e1e7 /tools
parent2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-438997f6a415d21fc20cfcfa2f1e14f1f04062c5.tar.bz2
2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* eolstrip.c: Readdress use of ctype methods per recommendation from D.J. Delorie on the newlib mailing list. We should pass an unsigned char into these methods.
Diffstat (limited to 'tools')
-rw-r--r--tools/build/ChangeLog6
-rw-r--r--tools/build/eolstrip.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/build/ChangeLog b/tools/build/ChangeLog
index 2a4e14c655..cb559b66ee 100644
--- a/tools/build/ChangeLog
+++ b/tools/build/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * eolstrip.c: Readdress use of ctype methods per recommendation from
+ D.J. Delorie on the newlib mailing list. We should pass an unsigned
+ char into these methods.
+
2007-09-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am: Rename bin2c to rtems-bin2c.
diff --git a/tools/build/eolstrip.c b/tools/build/eolstrip.c
index c944ae6663..398ff72116 100644
--- a/tools/build/eolstrip.c
+++ b/tools/build/eolstrip.c
@@ -197,7 +197,7 @@ process(char *arg)
if ( buffer[ length ] != '\n' )
error(ERR_ERRNO|ERR_FATAL, "Line %d too long in %s\n", line_number, arg);
- while ( isspace( (int) buffer[ length ] ) )
+ while ( isspace( (unsigned char) buffer[ length ] ) )
buffer[ length-- ] = '\0';
if ( test_only ) {