summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-12 16:26:36 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-12 16:26:36 +0000
commit88353c47f297769b7ef3dbdbe26beb94b5c59136 (patch)
treea13589567ca64596c654041a8076ea141d85c443
parent2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-88353c47f297769b7ef3dbdbe26beb94b5c59136.tar.bz2
2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp43/init.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.
-rw-r--r--testsuites/sptests/ChangeLog6
-rw-r--r--testsuites/sptests/sp43/init.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 2816584b1a..68c5511e0d 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * sp43/init.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.
+
2010-03-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac: Add new fatal error for configuring
diff --git a/testsuites/sptests/sp43/init.c b/testsuites/sptests/sp43/init.c
index 5ff1a84259..6377fb3f9a 100644
--- a/testsuites/sptests/sp43/init.c
+++ b/testsuites/sptests/sp43/init.c
@@ -86,8 +86,8 @@ void change_name(
else {
printf( "(" );
for (c=newName ; *c ; ) {
- if (isprint((int)*c)) printf( "%c", *c );
- else printf( "0x%02x", *c );
+ if (isprint((unsigned char)*c)) printf( "%c", *c );
+ else printf( "0x%02x", *c );
c++;
if ( *c )
printf( "-" );