From: Geoff Thorpe Date: Tue, 26 Jul 2005 04:25:05 +0000 (+0000) Subject: Fix signed/unsigned warnings. X-Git-Tag: OpenSSL_0_9_8k^2~1896 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=f920c5b590e3317fa740ca62fd87dbcd60978a16 Fix signed/unsigned warnings. --- diff --git a/crypto/rc4/rc4test.c b/crypto/rc4/rc4test.c index 49afa5c1db..633a79e758 100644 --- a/crypto/rc4/rc4test.c +++ b/crypto/rc4/rc4test.c @@ -216,11 +216,11 @@ int main(int argc, char *argv[]) if (memcmp(md,expected,sizeof(md))) { printf("error in RC4 bulk test\n"); printf("output:"); - for (j=0; j= sizeof(buf32)) + while(num >= (int)sizeof(buf32)) { largenum.value = buf; largenum.nbytes = sizeof(buf32); diff --git a/ssl/d1_both.c b/ssl/d1_both.c index dfe2bab88c..a584511c84 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -1228,7 +1228,7 @@ dtls1_min_mtu(void) static unsigned int dtls1_guess_mtu(unsigned int curr_mtu) { - int i; + unsigned int i; if ( curr_mtu == 0 ) return g_probable_mtu[0] ;