diff --git a/lib/runtime-c-api/tests/test-import-trap.c b/lib/runtime-c-api/tests/test-import-trap.c index ab11bcca9bd..0e28208eccc 100644 --- a/lib/runtime-c-api/tests/test-import-trap.c +++ b/lib/runtime-c-api/tests/test-import-trap.c @@ -6,9 +6,9 @@ static const char *trap_error_message = "Hello"; -void print_str(wasmer_instance_context_t *ctx, int32_t ptr, int32_t len) +void print_str(wasmer_instance_context_t *ctx, int32_t _ptr, int32_t _len) { - wasmer_import_trap(ctx, trap_error_message); + wasmer_trap(ctx, trap_error_message); } int main()