removed gcc compiler warnings

This commit is contained in:
Steffen Jaeckel 2010-06-14 15:16:08 +02:00
parent 59f9c00f98
commit c3018d69d0

View File

@ -76,13 +76,13 @@ int der_decode_sequence_ex(const unsigned char *in, unsigned long inlen,
} }
/* mark all as unused */ /* mark all as unused */
for (i = 0; i < outlen; i++) { for (i = 0; i < (int)outlen; i++) {
list[i].used = 0; list[i].used = 0;
} }
/* ok read data */ /* ok read data */
inlen = blksize; inlen = blksize;
for (i = 0; i < outlen; i++) { for (i = 0; i < (int)outlen; i++) {
z = 0; z = 0;
type = list[i].type; type = list[i].type;
size = list[i].size; size = list[i].size;
@ -268,7 +268,7 @@ int der_decode_sequence_ex(const unsigned char *in, unsigned long inlen,
} }
} }
for (i = 0; i < outlen; i++) { for (i = 0; i < (int)outlen; i++) {
if (list[i].used == 0) { if (list[i].used == 0) {
err = CRYPT_INVALID_PACKET; err = CRYPT_INVALID_PACKET;
goto LBL_ERR; goto LBL_ERR;