diff --git a/programs/test/selftest.c b/programs/test/selftest.c index 4ac71a8de..3a8ab7a32 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -180,7 +180,7 @@ static int calloc_self_test( int verbose ) } #endif /* MBEDTLS_SELF_TEST */ -static int test_snprintf( size_t n, const char ref_buf[10], int ref_ret ) +static int test_snprintf( size_t n, const char *ref_buf, int ref_ret ) { int ret; char buf[10] = "xxxxxxxxx"; diff --git a/tests/suites/main_test.function b/tests/suites/main_test.function index 8a4137bb0..1c9804f71 100644 --- a/tests/suites/main_test.function +++ b/tests/suites/main_test.function @@ -226,7 +226,7 @@ int parse_arguments( char *buf, size_t len, char *params[50] ) return( cnt ); } -static int test_snprintf( size_t n, const char ref_buf[10], int ref_ret ) +static int test_snprintf( size_t n, const char *ref_buf, int ref_ret ) { int ret; char buf[10] = "xxxxxxxxx";