From 3094b20bd8bf983a887f1e486a799904df6adb51 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 6 Oct 2022 21:21:21 +0900 Subject: [PATCH] samples/native-lib: Fix exec_env type (#1557) Change `wasm_exec_env_t *exec_env` to `wasm_exec_env_t exec_env` --- samples/native-lib/README.md | 2 +- samples/native-lib/test_add.c | 2 +- samples/native-lib/test_sqrt.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; }