diff options
Diffstat (limited to 'src/wasm')
-rw-r--r-- | src/wasm/nxt_rt_wasmtime.c | 2 | ||||
-rw-r--r-- | src/wasm/nxt_wasm.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/nxt_rt_wasmtime.c b/src/wasm/nxt_rt_wasmtime.c index 7f05fae0..bf0b0a0f 100644 --- a/src/wasm/nxt_rt_wasmtime.c +++ b/src/wasm/nxt_rt_wasmtime.c @@ -137,7 +137,7 @@ nxt_wasmtime_execute_hook(const nxt_wasm_ctx_t *ctx, nxt_wasm_fh_t hook) static int -nxt_wasmtime_execute_request(nxt_wasm_ctx_t *ctx) +nxt_wasmtime_execute_request(const nxt_wasm_ctx_t *ctx) { int i = 0; wasm_trap_t *trap = NULL; diff --git a/src/wasm/nxt_wasm.h b/src/wasm/nxt_wasm.h index f78aef13..6bc3ae35 100644 --- a/src/wasm/nxt_wasm.h +++ b/src/wasm/nxt_wasm.h @@ -127,7 +127,7 @@ struct nxt_wasm_ctx_s { struct nxt_wasm_operations_s { int (*init)(nxt_wasm_ctx_t *ctx); void (*destroy)(const nxt_wasm_ctx_t *ctx); - int (*exec_request)(nxt_wasm_ctx_t *ctx); + int (*exec_request)(const nxt_wasm_ctx_t *ctx); void (*exec_hook)(const nxt_wasm_ctx_t *ctx, nxt_wasm_fh_t hook); }; |