From: Geoff Thorpe Date: Fri, 22 Jul 2005 03:36:30 +0000 (+0000) Subject: Fix some signed/unsigned warnings. X-Git-Tag: OpenSSL_0_9_8k^2~1912 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=20a90e3a76135c34b4988ba3cc2835603d98639a Fix some signed/unsigned warnings. --- diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index 14837a7a7d..c340642515 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -155,7 +155,8 @@ int RAND_poll(void) #ifdef DEVRANDOM static const char *randomfiles[] = { DEVRANDOM }; struct stat randomstats[sizeof(randomfiles)/sizeof(randomfiles[0])]; - int fd,i; + int fd; + unsigned int i; #endif #ifdef DEVRANDOM_EGD static const char *egdsockets[] = { DEVRANDOM_EGD, NULL }; @@ -168,7 +169,8 @@ int RAND_poll(void) * have this. Use /dev/urandom if you can as /dev/random may block * if it runs out of random entries. */ - for (i=0; istate == SSL3_ST_SW_SRVR_HELLO_A)