mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Fix -Wshadow warnings
Checked that it is supported by gcc 4.2.1 (FreeBSD 9). fixes #240
This commit is contained in:
parent
4d04cdcd12
commit
ea35666f50
7 changed files with 28 additions and 29 deletions
|
|
@ -140,7 +140,7 @@ int mbedtls_platform_entropy_poll( void *data,
|
|||
unsigned char *output, size_t len, size_t *olen )
|
||||
{
|
||||
FILE *file;
|
||||
size_t ret;
|
||||
size_t read_len;
|
||||
((void) data);
|
||||
|
||||
#if defined(HAVE_GETRANDOM)
|
||||
|
|
@ -165,8 +165,8 @@ int mbedtls_platform_entropy_poll( void *data,
|
|||
if( file == NULL )
|
||||
return( MBEDTLS_ERR_ENTROPY_SOURCE_FAILED );
|
||||
|
||||
ret = fread( output, 1, len, file );
|
||||
if( ret != len )
|
||||
read_len = fread( output, 1, len, file );
|
||||
if( read_len != len )
|
||||
{
|
||||
fclose( file );
|
||||
return( MBEDTLS_ERR_ENTROPY_SOURCE_FAILED );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue