Fix few warnings resulting in build failures

This commit is contained in:
Mahavir Jain
2020-12-13 15:43:03 +05:30
parent 151ae9775a
commit b503ae4cb8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ int mbedtls_hmac_drbg_update_ret( mbedtls_hmac_drbg_context *ctx,
unsigned char rounds = ( additional != NULL && add_len != 0 ) ? 2 : 1;
unsigned char sep[1];
unsigned char K[MBEDTLS_MD_MAX_SIZE];
int ret;
int ret = 0;
for( sep[0] = 0; sep[0] < rounds; sep[0]++ )
{
+1 -1
View File
@@ -2044,7 +2044,7 @@ static int x509_crt_find_parent_in(
{
int ret;
mbedtls_x509_crt *parent, *fallback_parent;
int signature_is_good, fallback_signature_is_good;
int signature_is_good = 0, fallback_signature_is_good;
#if defined(MBEDTLS_ECDSA_C) && defined(MBEDTLS_ECP_RESTARTABLE)
/* did we have something in progress? */