diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-12-26 12:13:47 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-12-27 09:47:41 +0100 |
commit | 9ecf133686c8907baec2292ca612ee11aa18406e (patch) | |
tree | 58ab4df2a31b975f4eb7d18689cc66cb4b2a0d8e /src/common/crypto.c | |
parent | e895919b171029df4d38285b0be4483376b4ad25 (diff) | |
download | tor-9ecf133686c8907baec2292ca612ee11aa18406e.tar.gz tor-9ecf133686c8907baec2292ca612ee11aa18406e.zip |
Fix compile wanrings revealed by gcc 4.5 on mingw
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index e030c56064..52bd365d4e 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -1959,14 +1959,15 @@ seed_weak_rng(void) int crypto_seed_rng(int startup) { - char buf[ADD_ENTROPY]; int rand_poll_status = 0; /* local variables */ #ifdef MS_WINDOWS + unsigned char buf[ADD_ENTROPY]; static int provider_set = 0; static HCRYPTPROV provider; #else + char buf[ADD_ENTROPY]; static const char *filenames[] = { "/dev/srandom", "/dev/urandom", "/dev/random", NULL }; |