Skip to content

Commit 01d185c

Browse files
committed
Wasm: Re-add a removed 'const' qualifier in nxt_rt_wasmtime.c.
This was inadvertently removed in 76086d6 ("Wasm: Allow to set the HTTP response status.") Fixes: 76086d6 ("Wasm: Allow to set the HTTP response status.") Signed-off-by: Andrew Clayton <[email protected]>
1 parent d1a9069 commit 01d185c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wasm/nxt_rt_wasmtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ nxt_wasmtime_execute_hook(const nxt_wasm_ctx_t *ctx, nxt_wasm_fh_t hook)
137137

138138

139139
static int
140-
nxt_wasmtime_execute_request(nxt_wasm_ctx_t *ctx)
140+
nxt_wasmtime_execute_request(const nxt_wasm_ctx_t *ctx)
141141
{
142142
int i = 0;
143143
wasm_trap_t *trap = NULL;

src/wasm/nxt_wasm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ struct nxt_wasm_ctx_s {
127127
struct nxt_wasm_operations_s {
128128
int (*init)(nxt_wasm_ctx_t *ctx);
129129
void (*destroy)(const nxt_wasm_ctx_t *ctx);
130-
int (*exec_request)(nxt_wasm_ctx_t *ctx);
130+
int (*exec_request)(const nxt_wasm_ctx_t *ctx);
131131
void (*exec_hook)(const nxt_wasm_ctx_t *ctx, nxt_wasm_fh_t hook);
132132
};
133133

0 commit comments

Comments
 (0)