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>
diff --git a/library/error.c b/library/error.c
index 901a369..b5bd8d7 100644
--- a/library/error.c
+++ b/library/error.c
@@ -893,6 +893,8 @@
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;