diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-12 16:26:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-12 16:26:36 +0000 |
commit | 88353c47f297769b7ef3dbdbe26beb94b5c59136 (patch) | |
tree | a13589567ca64596c654041a8076ea141d85c443 /testsuites/sptests/sp43 | |
parent | 2010-03-12 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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.
Diffstat (limited to 'testsuites/sptests/sp43')
-rw-r--r-- | testsuites/sptests/sp43/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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( "-" ); |