summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-06-22 00:20:00 +0100
committerAndrew Clayton <a.clayton@nginx.com>2024-07-03 20:41:00 +0100
commitff6d504530ad2c126fc264744faa9e62bcc43fb9 (patch)
treeae2caf9c241f9d3d980d7cd3a027a05e00c24149 /src
parent3621352278aa6a3ef760c2fdfbbec0c1310ec1e6 (diff)
downloadunit-ff6d504530ad2c126fc264744faa9e62bcc43fb9.tar.gz
unit-ff6d504530ad2c126fc264744faa9e62bcc43fb9.tar.bz2
python: Constify some local static variables
These somehow got missed in my previous constification patches... Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r--src/python/nxt_python.c8
1 files changed, 4 insertions, 4 deletions
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;