diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-06-21 23:57:44 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-06-24 22:30:39 +0100 |
commit | ab1b3f9da8cd6d4816f916244a728243e514a544 (patch) | |
tree | 8bd4190d25a42724a9cba41ce45767a7b3d98a8f /src | |
parent | 5c4911a35e289d1813daeab61bf7e347d7bea3f3 (diff) | |
download | unit-ab1b3f9da8cd6d4816f916244a728243e514a544.tar.gz unit-ab1b3f9da8cd6d4816f916244a728243e514a544.tar.bz2 |
test/clone: 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/test/nxt_clone_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/nxt_clone_test.c b/src/test/nxt_clone_test.c index 64b9ddea..1a864f0e 100644 --- a/src/test/nxt_clone_test.c +++ b/src/test/nxt_clone_test.c @@ -560,9 +560,9 @@ nxt_clone_test_parse_map(nxt_task_t *task, nxt_str_t *map_str, nxt_runtime_t *rt; nxt_conf_value_t *array, *obj, *value; - static nxt_str_t host_name = nxt_string("host"); - static nxt_str_t cont_name = nxt_string("container"); - static nxt_str_t size_name = nxt_string("size"); + static const nxt_str_t host_name = nxt_string("host"); + static const nxt_str_t cont_name = nxt_string("container"); + static const nxt_str_t size_name = nxt_string("size"); rt = task->thread->runtime; |