From d2565d4c259d94294ca92006e2386d29c86acfd8 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 19 May 2026 17:55:52 +0300 Subject: [PATCH] tests/custom-env: add const When I make the test harness more type-safe, this would fail to build. Add the missing const. Signed-off-by: Pekka Paalanen --- tests/custom-env-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/custom-env-test.c b/tests/custom-env-test.c index f6945cc04..0cbebd0b5 100644 --- a/tests/custom-env-test.c +++ b/tests/custom-env-test.c @@ -115,7 +115,7 @@ struct test_str { char * const *argp; }; -static struct test_str str_tests[] = { +static const struct test_str str_tests[] = { { .exec_str = "ENV1=1 ENV2=owt two-arghs", .envp = (char * const []) { "ENV1=1", "ENV2=owt", "ENV3=three", NULL }, @@ -151,7 +151,7 @@ static struct test_str str_tests[] = { TEST_P(env_parse_string, str_tests) { struct custom_env env; - struct test_str *test = data; + const struct test_str *test = data; testlog("checking exec_str '%s'\n", test->exec_str); custom_env_init_from_environ(&env);