aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-10-21 12:00:53 -0400
committerMike Frysinger <vapier@gentoo.org>2021-10-21 12:00:53 -0400
commite5501952ff0513d32723f7b9a3250702076be0a6 (patch)
tree52d6be5cfd30320189ea250d860aa96212ae5d75 /libsandbox/libsandbox.c
parentswitch to https:// URIs when possible (diff)
downloadsandbox-e5501952ff0513d32723f7b9a3250702076be0a6.tar.gz
sandbox-e5501952ff0513d32723f7b9a3250702076be0a6.tar.bz2
sandbox-e5501952ff0513d32723f7b9a3250702076be0a6.zip
libsandbox: tweak const markings on env vars
This fixes compiler warnings, but shouldn't make a difference otherwise. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/libsandbox.c')
-rw-r--r--libsandbox/libsandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsandbox/libsandbox.c b/libsandbox/libsandbox.c
index d69fecd..b084daa 100644
--- a/libsandbox/libsandbox.c
+++ b/libsandbox/libsandbox.c
@@ -1130,7 +1130,7 @@ bool before_syscall_open_char(int dirfd, int sb_nr, const char *func, const char
typedef struct {
const char *name;
size_t len;
- char *value;
+ const char *value;
} env_pair;
#define ENV_PAIR(x, n, v) [x] = { .name = n, .len = sizeof(n) - 1, .value = v, }