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>
diff --git a/include/mbedtls/error.h b/include/mbedtls/error.h
index 752f7bf..154f071 100644
--- a/include/mbedtls/error.h
+++ b/include/mbedtls/error.h
@@ -125,7 +125,7 @@
  *
  * \param hook    hook to invasive testing function
  */
-void mbedtls_set_err_add_hook( void *hook );
+void mbedtls_set_err_add_hook( void (*hook)( int, int, const char *, int ) );
 int mbedtls_err_add( int high, int low, const char *file, int line );
 #define MBEDTLS_ERR_ADD( high, low )  \
     ( mbedtls_err_add( high, low, __FILE__, __LINE__ ) )