mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Remove error_description variable from strerr functions
This was suggested on this PR: https://github.com/ARMmbed/mbedtls/pull/3176 Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
This commit is contained in:
@ -45,7 +45,6 @@ HEADER_INCLUDED
|
||||
const char * mbedtls_high_level_strerr( int error_code )
|
||||
{
|
||||
int high_level_error_code;
|
||||
const char *error_description = NULL;
|
||||
|
||||
if( error_code < 0 )
|
||||
error_code = -error_code;
|
||||
@ -63,13 +62,12 @@ HIGH_LEVEL_CODE_CHECKS
|
||||
break;
|
||||
}
|
||||
|
||||
return error_description;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char * mbedtls_low_level_strerr( int error_code )
|
||||
{
|
||||
int low_level_error_code;
|
||||
const char *error_description = NULL;
|
||||
|
||||
if( error_code < 0 )
|
||||
error_code = -error_code;
|
||||
@ -87,7 +85,7 @@ LOW_LEVEL_CODE_CHECKS
|
||||
break;
|
||||
}
|
||||
|
||||
return error_description;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
||||
|
Reference in New Issue
Block a user