Change set_err_add_hook void pointer to actual function pointer signature
Change the signature of the `hook` parameter of `mbedtls_set_err_add_hook` to use the actual signature of the function as opposed to `void *`. This fixes a warning when compiling with clang `-pedantic`. Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
parent
fe285f53e6
commit
b179b84335
3 changed files with 3 additions and 3 deletions
|
@ -896,7 +896,7 @@ const char * mbedtls_low_level_strerr( int error_code )
|
|||
#if defined(MBEDTLS_TEST_HOOKS)
|
||||
static void (*err_add_hook)( int, int, const char *, int );
|
||||
|
||||
void mbedtls_set_err_add_hook(void *hook)
|
||||
void mbedtls_set_err_add_hook( void (*hook)( int, int, const char *, int ) )
|
||||
{
|
||||
err_add_hook = hook;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue