tests: Add mbedtls_test_ prefix to zero_alloc()

Add mbedtls_test_ prefix to zero_alloc() test helper
function.

Command to change *.function files:
find . -name "*.function" -exec awk -i inplace \
    '{sub(/zero_alloc/,"mbedtls_test_&")}1' {} \;

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2020-06-10 10:42:18 +02:00
parent ff31eab938
commit 690f3ebe92
5 changed files with 8 additions and 8 deletions

View file

@ -100,7 +100,7 @@ void mbedtls_test_hexify( unsigned char *obuf,
}
}
unsigned char *zero_alloc( size_t len )
unsigned char *mbedtls_test_zero_alloc( size_t len )
{
void *p;
size_t actual_len = ( len != 0 ) ? len : 1;
@ -120,7 +120,7 @@ unsigned char *unhexify_alloc( const char *ibuf, size_t *olen )
*olen = strlen( ibuf ) / 2;
if( *olen == 0 )
return( zero_alloc( *olen ) );
return( mbedtls_test_zero_alloc( *olen ) );
obuf = mbedtls_calloc( 1, *olen );
TEST_HELPER_ASSERT( obuf != NULL );