aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-08-06 01:20:14 +0100
committerMike Gilbert <floppym@gentoo.org>2023-08-08 11:29:39 -0400
commit4d85608b67803f8f861910590830fcb8c2220b06 (patch)
treecbb2366d3da2851361767c31cdaa8b89c2679c9d
parentlibsbutil: fix -Wold-style-declaration (diff)
downloadsandbox-4d85608b67803f8f861910590830fcb8c2220b06.tar.gz
sandbox-4d85608b67803f8f861910590830fcb8c2220b06.tar.bz2
sandbox-4d85608b67803f8f861910590830fcb8c2220b06.zip
src: fix -Wold-style-declaration
Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/sandbox/pull/23 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--src/sandbox.c4
1 files 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[] = "--------------------------------------------------------------------------------";