1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Fix misc issues with unused parameters and check-names.sh

Fix unused parameter warnings when MBEDTLS_TEST_HOOKS is not enabled.

A few issues were caught by check-names.sh namely:

- mbedtls_error_add was not capitalised.
- mbedtls_test_hook_error_add was being defined multiple times as the
  definition was in a header.

Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
Chris Jones
2021-04-01 17:40:03 +01:00
parent 7439209bcc
commit b7d02e0f15
4 changed files with 23 additions and 16 deletions

View File

@ -82,6 +82,8 @@ LOW_LEVEL_CODE_CHECKS
return( NULL );
}
void (*mbedtls_test_hook_error_add)( int, int, const char *, int );
void mbedtls_strerror( int ret, char *buf, size_t buflen )
{
size_t len;