提交 f920c5b5 编写于 作者: G Geoff Thorpe

Fix signed/unsigned warnings.

上级 05fc7018
...@@ -216,11 +216,11 @@ int main(int argc, char *argv[]) ...@@ -216,11 +216,11 @@ int main(int argc, char *argv[])
if (memcmp(md,expected,sizeof(md))) { if (memcmp(md,expected,sizeof(md))) {
printf("error in RC4 bulk test\n"); printf("error in RC4 bulk test\n");
printf("output:"); printf("output:");
for (j=0; j<sizeof(md); j++) for (j=0; j<(int)sizeof(md); j++)
printf(" %02x",md[j]); printf(" %02x",md[j]);
printf("\n"); printf("\n");
printf("expect:"); printf("expect:");
for (j=0; j<sizeof(md); j++) for (j=0; j<(int)sizeof(md); j++)
printf(" %02x",expected[j]); printf(" %02x",expected[j]);
printf("\n"); printf("\n");
err++; err++;
......
...@@ -1062,7 +1062,7 @@ static int cswift_rand_bytes(unsigned char *buf, int num) ...@@ -1062,7 +1062,7 @@ static int cswift_rand_bytes(unsigned char *buf, int num)
/* limitation of cswift with values not a multiple of 32 */ /* limitation of cswift with values not a multiple of 32 */
/************************************************************************/ /************************************************************************/
while(num >= sizeof(buf32)) while(num >= (int)sizeof(buf32))
{ {
largenum.value = buf; largenum.value = buf;
largenum.nbytes = sizeof(buf32); largenum.nbytes = sizeof(buf32);
......
...@@ -1228,7 +1228,7 @@ dtls1_min_mtu(void) ...@@ -1228,7 +1228,7 @@ dtls1_min_mtu(void)
static unsigned int static unsigned int
dtls1_guess_mtu(unsigned int curr_mtu) dtls1_guess_mtu(unsigned int curr_mtu)
{ {
int i; unsigned int i;
if ( curr_mtu == 0 ) if ( curr_mtu == 0 )
return g_probable_mtu[0] ; return g_probable_mtu[0] ;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册