Skip to content

Commit ab1b3f9

Browse files
committed
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>
1 parent 5c4911a commit ab1b3f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/nxt_clone_test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ nxt_clone_test_parse_map(nxt_task_t *task, nxt_str_t *map_str,
560560
nxt_runtime_t *rt;
561561
nxt_conf_value_t *array, *obj, *value;
562562

563-
static nxt_str_t host_name = nxt_string("host");
564-
static nxt_str_t cont_name = nxt_string("container");
565-
static nxt_str_t size_name = nxt_string("size");
563+
static const nxt_str_t host_name = nxt_string("host");
564+
static const nxt_str_t cont_name = nxt_string("container");
565+
static const nxt_str_t size_name = nxt_string("size");
566566

567567
rt = task->thread->runtime;
568568

0 commit comments

Comments
 (0)