From ff6d504530ad2c126fc264744faa9e62bcc43fb9 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Sat, 22 Jun 2024 00:20:00 +0100 Subject: python: Constify some local static variables These somehow got missed in my previous constification patches... Signed-off-by: Andrew Clayton --- src/python/nxt_python.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/python/nxt_python.c b/src/python/nxt_python.c index aa0f65b1..7bbf3d49 100644 --- a/src/python/nxt_python.c +++ b/src/python/nxt_python.c @@ -406,10 +406,10 @@ nxt_python_set_target(nxt_task_t *task, nxt_python_target_t *target, nxt_bool_t is_factory = 0; nxt_conf_value_t *value; - static nxt_str_t module_str = nxt_string("module"); - static nxt_str_t callable_str = nxt_string("callable"); - static nxt_str_t prefix_str = nxt_string("prefix"); - static nxt_str_t factory_flag_str = nxt_string("factory"); + static const nxt_str_t module_str = nxt_string("module"); + static const nxt_str_t callable_str = nxt_string("callable"); + static const nxt_str_t prefix_str = nxt_string("prefix"); + static const nxt_str_t factory_flag_str = nxt_string("factory"); module = obj = NULL; -- cgit