diff --git a/test/api/c_interface_test.c b/test/api/c_interface_test.c index 197da4a6..db02fa2e 100644 --- a/test/api/c_interface_test.c +++ b/test/api/c_interface_test.c @@ -2,7 +2,7 @@ #include // Cast to this function type to ignore other parameters. -typedef int (*Func)(void*); +typedef int (*Func)(const void*); #define CALL(p, m) (((Func)((*p)->m))(p)) // Check if the function return an expected number. #define CHECK(n, p, m) check(n, CALL(p, m), #m)