From f40693d9e86f2802c82578ee4770a14fda499b86 Mon Sep 17 00:00:00 2001 From: Peter Huene Date: Wed, 25 Mar 2020 18:55:54 -0700 Subject: [PATCH] Fix calls to wasmtime_wat2wasm to remove engine argument. --- examples/gcd.c | 2 +- examples/hello.c | 2 +- examples/linking.c | 2 +- examples/memory.c | 2 +- examples/multi.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) 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; }