diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-28 20:24:27 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-28 20:24:27 +0000 |
commit | f38240435a474b71a308cecf2e4e5aff6a40d332 (patch) | |
tree | 489bc14fcc9fd343bfc27e0bcf402da0582b960f /src/common/crypto.c | |
parent | 3008c3b768f2cb8ab735e8ebbda2d4322910b19e (diff) | |
download | tor-f38240435a474b71a308cecf2e4e5aff6a40d332.tar tor-f38240435a474b71a308cecf2e4e5aff6a40d332.tar.gz |
r12001@catbus: nickm | 2007-02-28 15:24:12 -0500
Try to build without warnings on mingw with verbose warnings on. First attempt.
svn:r9688
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 7c5dc14d4..0daf24310 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -1567,7 +1567,7 @@ crypto_seed_rng(void) if (!provider_set) { if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { - if (GetLastError() != NTE_BAD_KEYSET) { + if ((unsigned long)GetLastError() != (unsigned long)NTE_BAD_KEYSET) { log_warn(LD_CRYPTO, "Can't get CryptoAPI provider [1]"); return rand_poll_status ? 0 : -1; } |