diff --git a/samples/native-lib/README.md b/samples/native-lib/README.md index 668d28b6..ae052b93 100644 --- a/samples/native-lib/README.md +++ b/samples/native-lib/README.md @@ -6,7 +6,7 @@ The native library should provide `get_native_lib` API for iwasm to return the n ```C static int -foo_wrapper(wasm_exec_env_t *exec_env, int x, int y) +foo_wrapper(wasm_exec_env_t exec_env, int x, int y) { return x + y; } diff --git a/samples/native-lib/test_add.c b/samples/native-lib/test_add.c index d66ba81f..ac44c619 100644 --- a/samples/native-lib/test_add.c +++ b/samples/native-lib/test_add.c @@ -9,7 +9,7 @@ #include "wasm_export.h" static int -test_add_wrapper(wasm_exec_env_t *exec_env, int x, int y) +test_add_wrapper(wasm_exec_env_t exec_env, int x, int y) { return x + y; } diff --git a/samples/native-lib/test_sqrt.c b/samples/native-lib/test_sqrt.c index e867a2c9..ecf7c989 100644 --- a/samples/native-lib/test_sqrt.c +++ b/samples/native-lib/test_sqrt.c @@ -9,7 +9,7 @@ #include "wasm_export.h" static int -test_sqrt_wrapper(wasm_exec_env_t *exec_env, int x, int y) +test_sqrt_wrapper(wasm_exec_env_t exec_env, int x, int y) { return x * x + y * y; }