Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constify some missed static local variables (in src/perl, src/test) #1338

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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>
ac000 committed Jun 24, 2024
commit ab1b3f9da8cd6d4816f916244a728243e514a544
6 changes: 3 additions & 3 deletions src/test/nxt_clone_test.c
Original file line number Diff line number Diff line change
@@ -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;