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/common/crypto.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/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 4 |
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; |