aboutsummaryrefslogtreecommitdiff
path: root/src/common/crypto.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-19 20:50:12 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-19 20:50:12 +0000
commitc195f690583bd5f6bd7c0c760ee15fed944bbd7c (patch)
treedda31dd126abc4e888fbd6b20e5d9f4d0ac1cf16 /src/common/crypto.c
parent51750ae09a162bd9de70e9163213d3a07788ea9d (diff)
downloadtor-c195f690583bd5f6bd7c0c760ee15fed944bbd7c.tar.gz
tor-c195f690583bd5f6bd7c0c760ee15fed944bbd7c.zip
isspace and friends take an int. solaris cares.
svn:r1303
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r--src/common/crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c
index 4f5a14d6dc..2b2f3b3118 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -691,9 +691,9 @@ crypto_pk_check_fingerprint_syntax(const char *s)
int i;
for (i = 0; i < FINGERPRINT_LEN; ++i) {
if ((i%5) == 4) {
- if (!isspace(s[i])) return 0;
+ if (!isspace((int)s[i])) return 0;
} else {
- if (!isxdigit(s[i])) return 0;
+ if (!isxdigit((int)s[i])) return 0;
}
}
if (s[FINGERPRINT_LEN]) return 0;