From 55c30addf6bd75fb4c8a42ae14644e71a81e8652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 12 Nov 2021 16:41:56 +0100 Subject: [PATCH] sandbox: mark local functions static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit seunshare.c:92:6: warning: no previous prototype for ‘handler’ [-Wmissing-prototypes] 92 | void handler(int sig) { | ^~~~~~~ Signed-off-by: Christian Göttsche --- sandbox/seunshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sandbox/seunshare.c b/sandbox/seunshare.c index d626e98d..8917a0f9 100644 --- a/sandbox/seunshare.c +++ b/sandbox/seunshare.c @@ -89,7 +89,7 @@ static int drop_privs(uid_t uid) /** * If the user sends a siginto to seunshare, kill the child's session */ -void handler(int sig) { +static void handler(int sig) { if (child > 0) kill(-child,sig); }