diff --git a/examples/gcd.c b/examples/gcd.c index 3338f9f182..b61fd75199 100644 --- a/examples/gcd.c +++ b/examples/gcd.c @@ -52,7 +52,7 @@ int main() { // Parse the wat into the binary wasm format wasm_byte_vec_t wasm, error; - if (wasmtime_wat2wasm(engine, &wat, &wasm, &error) == 0) { + if (wasmtime_wat2wasm(&wat, &wasm, &error) == 0) { fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); goto free_store; } diff --git a/examples/hello.c b/examples/hello.c index b8ba6894c0..f596bee6a8 100644 --- a/examples/hello.c +++ b/examples/hello.c @@ -59,7 +59,7 @@ int main() { // Parse the wat into the binary wasm format wasm_byte_vec_t wasm, error; - if (wasmtime_wat2wasm(engine, &wat, &wasm, &error) == 0) { + if (wasmtime_wat2wasm(&wat, &wasm, &error) == 0) { fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); goto free_store; } diff --git a/examples/linking.c b/examples/linking.c index 27cf612da3..95c28fd641 100644 --- a/examples/linking.c +++ b/examples/linking.c @@ -147,7 +147,7 @@ static void read_wat_file( // Parse the wat into the binary wasm format wasm_byte_vec_t error; - if (wasmtime_wat2wasm(engine, &wat, bytes, &error) == 0) { + if (wasmtime_wat2wasm(&wat, bytes, &error) == 0) { fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); exit(1); } diff --git a/examples/memory.c b/examples/memory.c index 11361e0b69..7174d17aba 100644 --- a/examples/memory.c +++ b/examples/memory.c @@ -141,7 +141,7 @@ int main(int argc, const char* argv[]) { // Parse the wat into the binary wasm format wasm_byte_vec_t binary, error; - if (wasmtime_wat2wasm(engine, &wat, &binary, &error) == 0) { + if (wasmtime_wat2wasm(&wat, &binary, &error) == 0) { fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); return 1; } diff --git a/examples/multi.c b/examples/multi.c index d3d2605d52..735964d561 100644 --- a/examples/multi.c +++ b/examples/multi.c @@ -84,7 +84,7 @@ int main(int argc, const char* argv[]) { // Parse the wat into the binary wasm format wasm_byte_vec_t binary, error; - if (wasmtime_wat2wasm(engine, &wat, &binary, &error) == 0) { + if (wasmtime_wat2wasm(&wat, &binary, &error) == 0) { fprintf(stderr, "failed to parse wat %.*s\n", (int) error.size, error.data); return 1; }