summaryrefslogtreecommitdiffhomepage
path: root/src/wasm
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-09-27 21:25:09 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-10-10 20:44:07 +0100
commit01d185cb52af8879aeeab04765eff439feec664c (patch)
tree916c8f23a2adb6bbc52b0d73d19e6b84e3ca426e /src/wasm
parentd1a9069852b78e43aa4e0265cf193743019f41be (diff)
downloadunit-01d185cb52af8879aeeab04765eff439feec664c.tar.gz
unit-01d185cb52af8879aeeab04765eff439feec664c.tar.bz2
Wasm: Re-add a removed 'const' qualifier in nxt_rt_wasmtime.c.
This was inadvertently removed in 76086d6d ("Wasm: Allow to set the HTTP response status.") Fixes: 76086d6d ("Wasm: Allow to set the HTTP response status.") Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/nxt_rt_wasmtime.c2
-rw-r--r--src/wasm/nxt_wasm.h2
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);
};