aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-13 10:34:46 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-13 10:34:46 +0000
commit2749384c8aaa69fbc36ce543a91a2bd725cf0fa7 (patch)
tree6fd6594872e335e5231a4f2ac6784566e5d84200 /src/testing
parentf3ea350b538c3c8584bb5f37b038eb6e5fc3ff16 (diff)
downloadgnunet-2749384c8aaa69fbc36ce543a91a2bd725cf0fa7.tar.gz
gnunet-2749384c8aaa69fbc36ce543a91a2bd725cf0fa7.zip
pass only unsigned char to isspace and the like
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_group.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c
index f4057e6d1..32af2efa9 100644
--- a/src/testing/testing_group.c
+++ b/src/testing/testing_group.c
@@ -2542,12 +2542,12 @@ GNUNET_TESTING_daemons_start (struct GNUNET_SCHEDULER_Handle *sched,
2542 { 2542 {
2543 off = 2; 2543 off = 2;
2544 /* skip leading spaces */ 2544 /* skip leading spaces */
2545 while ((0 != *hostnames) && (isspace (*hostnames))) 2545 while ((0 != *hostnames) && (isspace ( (unsigned char) *hostnames)))
2546 hostnames++; 2546 hostnames++;
2547 rpos = hostnames; 2547 rpos = hostnames;
2548 while ('\0' != *rpos) 2548 while ('\0' != *rpos)
2549 { 2549 {
2550 if (isspace (*rpos)) 2550 if (isspace ( (unsigned char) *rpos))
2551 off++; 2551 off++;
2552 rpos++; 2552 rpos++;
2553 } 2553 }
@@ -2557,7 +2557,7 @@ GNUNET_TESTING_daemons_start (struct GNUNET_SCHEDULER_Handle *sched,
2557 pos = start; 2557 pos = start;
2558 while ('\0' != *pos) 2558 while ('\0' != *pos)
2559 { 2559 {
2560 if (isspace (*pos)) 2560 if (isspace ( (unsigned char) *pos))
2561 { 2561 {
2562 *pos = '\0'; 2562 *pos = '\0';
2563 if (strlen (start) > 0) 2563 if (strlen (start) > 0)