Wasm: Re-add a removed 'const' qualifier in nxt_rt_wasmtime.c.
This was inadvertently removed in76086d6d("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:
@@ -137,7 +137,7 @@ nxt_wasmtime_execute_hook(const nxt_wasm_ctx_t *ctx, nxt_wasm_fh_t hook)
|
|||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
nxt_wasmtime_execute_request(nxt_wasm_ctx_t *ctx)
|
nxt_wasmtime_execute_request(const nxt_wasm_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
wasm_trap_t *trap = NULL;
|
wasm_trap_t *trap = NULL;
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ struct nxt_wasm_ctx_s {
|
|||||||
struct nxt_wasm_operations_s {
|
struct nxt_wasm_operations_s {
|
||||||
int (*init)(nxt_wasm_ctx_t *ctx);
|
int (*init)(nxt_wasm_ctx_t *ctx);
|
||||||
void (*destroy)(const 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);
|
void (*exec_hook)(const nxt_wasm_ctx_t *ctx, nxt_wasm_fh_t hook);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user