summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-12-08 00:42:50 +0000
committerNick Mathewson <nickm@torproject.org>2004-12-08 00:42:50 +0000
commitfe6eb34a10ccfc2ececbcc7459d0a1fb23b9b021 (patch)
tree806b089836d892e3024af375d8c0e95a9ef8fe00 /src/or/directory.c
parentd7dbfd3644dac410cb4ee558f31b514ca3689afc (diff)
downloadtor-fe6eb34a10ccfc2ececbcc7459d0a1fb23b9b021.tar.gz
tor-fe6eb34a10ccfc2ececbcc7459d0a1fb23b9b021.zip
Solaris CC freaks out if isspace and friends get anything other than an int. We learned that, so we casted. But it is also a bad idea to cast a signed char to an int and expect things to work on win32. Now we cast to unsigned char, then to int, then pass to isspace. Ug
svn:r3120
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 66c30960ab..1408e15c44 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -472,7 +472,7 @@ parse_http_response(const char *headers, int *code, time_t *date,
tor_assert(headers);
tor_assert(code);
- while (isspace((int)*headers)) headers++; /* tolerate leading whitespace */
+ while (TOR_ISSPACE(*headers)) headers++; /* tolerate leading whitespace */
if (sscanf(headers, "HTTP/1.%d %d", &n1, &n2) < 2 ||
(n1 != 0 && n1 != 1) ||