diff options
author | Geoff Thorpe <geoff@openssl.org> | 2005-07-26 04:25:05 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2005-07-26 04:25:05 +0000 |
commit | f920c5b590e3317fa740ca62fd87dbcd60978a16 (patch) | |
tree | 6d98101ae4c8ef85201ad9c0c6d67e015bae2208 | |
parent | 05fc7018f8d3e33a6aad5073fb09cb6224d128c3 (diff) |
Fix signed/unsigned warnings.
-rw-r--r-- | crypto/rc4/rc4test.c | 4 | ||||
-rw-r--r-- | engines/e_cswift.c | 2 | ||||
-rw-r--r-- | ssl/d1_both.c | 2 |
3 files changed, 4 insertions, 4 deletions
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(md); j++) + for (j=0; j<(int)sizeof(md); j++) printf(" %02x",md[j]); printf("\n"); printf("expect:"); - for (j=0; j<sizeof(md); j++) + for (j=0; j<(int)sizeof(md); j++) printf(" %02x",expected[j]); printf("\n"); err++; diff --git a/engines/e_cswift.c b/engines/e_cswift.c index 2017e48c0e..d5f1d4e05f 100644 --- a/engines/e_cswift.c +++ b/engines/e_cswift.c @@ -1062,7 +1062,7 @@ static int cswift_rand_bytes(unsigned char *buf, int num) /* limitation of cswift with values not a multiple of 32 */ /************************************************************************/ - while(num >= 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] ; |