diff options
author | Roger Dingledine <arma@torproject.org> | 2004-03-19 20:50:12 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-03-19 20:50:12 +0000 |
commit | c195f690583bd5f6bd7c0c760ee15fed944bbd7c (patch) | |
tree | dda31dd126abc4e888fbd6b20e5d9f4d0ac1cf16 /src/or/onion.c | |
parent | 51750ae09a162bd9de70e9163213d3a07788ea9d (diff) | |
download | tor-c195f690583bd5f6bd7c0c760ee15fed944bbd7c.tar.gz tor-c195f690583bd5f6bd7c0c760ee15fed944bbd7c.zip |
isspace and friends take an int. solaris cares.
svn:r1303
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 8293b27dcb..8dc3efa904 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -164,11 +164,11 @@ static void add_nickname_list_to_smartlist(smartlist_t *sl, char *list) { char nick[MAX_NICKNAME_LEN]; routerinfo_t *router; - while(isspace(*list) || *list==',') list++; + while(isspace((int)*list) || *list==',') list++; start = list; while(*start) { - end=start; while(*end && !isspace(*end) && *end != ',') end++; + end=start; while(*end && !isspace((int)*end) && *end != ',') end++; memcpy(nick,start,end-start); nick[end-start] = 0; /* null terminate it */ router = router_get_by_nickname(nick); @@ -180,7 +180,7 @@ static void add_nickname_list_to_smartlist(smartlist_t *sl, char *list) { } else log_fn(has_fetched_directory ? LOG_WARN : LOG_INFO, "Nickname list includes '%s' which isn't a known router.",nick); - while(isspace(*end) || *end==',') end++; + while(isspace((int)*end) || *end==',') end++; start = end; } } |