From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 872F3158086 for ; Thu, 21 Oct 2021 20:37:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEFACE0837; Thu, 21 Oct 2021 20:37:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8C697E0837 for ; Thu, 21 Oct 2021 20:37:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 673CF3435C1 for ; Thu, 21 Oct 2021 20:37:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D17C6166 for ; Thu, 21 Oct 2021 20:37:41 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1634832053.e5501952ff0513d32723f7b9a3250702076be0a6.vapier@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: libsandbox/ X-VCS-Repository: proj/sandbox X-VCS-Files: libsandbox/libsandbox.c X-VCS-Directories: libsandbox/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: e5501952ff0513d32723f7b9a3250702076be0a6 X-VCS-Branch: master Date: Thu, 21 Oct 2021 20:37:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cb8031ba-b80d-4011-b2c9-cbe77e94d732 X-Archives-Hash: 253b68502149ada5416c0d66b7db88cd commit: e5501952ff0513d32723f7b9a3250702076be0a6 Author: Mike Frysinger gentoo org> AuthorDate: Thu Oct 21 16:00:53 2021 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Oct 21 16:00:53 2021 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=e5501952 libsandbox: tweak const markings on env vars This fixes compiler warnings, but shouldn't make a difference otherwise. Signed-off-by: Mike Frysinger gentoo.org> libsandbox/libsandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, }