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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DA4DF15800A for ; Tue, 8 Aug 2023 15:30:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 22F0E2BC018; Tue, 8 Aug 2023 15:30:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 07D492BC018 for ; Tue, 8 Aug 2023 15:30:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D75DE335DCA for ; Tue, 8 Aug 2023 15:30:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 42A4EF2D for ; Tue, 8 Aug 2023 15:30:28 +0000 (UTC) From: "Mike Gilbert" 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 Gilbert" Message-ID: <1691508579.4d85608b67803f8f861910590830fcb8c2220b06.floppym@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: src/ X-VCS-Repository: proj/sandbox X-VCS-Files: src/sandbox.c X-VCS-Directories: src/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 4d85608b67803f8f861910590830fcb8c2220b06 X-VCS-Branch: master Date: Tue, 8 Aug 2023 15:30:28 +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: 855adc22-ac60-4275-bb18-0e3a625b763e X-Archives-Hash: 0628b39e489d5f1cf7377ee33f007e3f commit: 4d85608b67803f8f861910590830fcb8c2220b06 Author: Sam James gentoo org> AuthorDate: Sun Aug 6 00:20:14 2023 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Tue Aug 8 15:29:39 2023 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=4d85608b src: fix -Wold-style-declaration Signed-off-by: Sam James gentoo.org> Closes: https://github.com/gentoo/sandbox/pull/23 Signed-off-by: Mike Gilbert gentoo.org> src/sandbox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sandbox.c b/src/sandbox.c index e4e05c8..071cad0 100644 --- a/src/sandbox.c +++ b/src/sandbox.c @@ -25,8 +25,8 @@ int (*sbio_faccessat)(int, const char *, int, int) = faccessat; int (*sbio_open)(const char *, int, mode_t) = (void *)open; FILE *(*sbio_popen)(const char *, const char *) = popen; -volatile static int stop_called = 0; -volatile static pid_t child_pid = 0; +static volatile int stop_called = 0; +static volatile pid_t child_pid = 0; static const char sandbox_banner[] = "============================= Gentoo path sandbox =============================="; static const char sandbox_footer[] = "--------------------------------------------------------------------------------";