commit:     4d85608b67803f8f861910590830fcb8c2220b06
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  6 00:20:14 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> 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 <sam <AT> gentoo.org>
Closes: https://github.com/gentoo/sandbox/pull/23
Signed-off-by: Mike Gilbert <floppym <AT> 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[] = 
"--------------------------------------------------------------------------------";

Reply via email to