mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-30 18:48:25 +02:00
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 <pekka.paalanen@collabora.com>
This commit is contained in:
parent
6588352937
commit
d2565d4c25
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue