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>
This commit is contained in:
Andrew Clayton
2023-09-27 21:25:09 +01:00
parent d1a9069852
commit 01d185cb52
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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);
};