mirror of
https://github.com/topjohnwu/selinux.git
synced 2024-11-27 13:30:48 +00:00
sandbox: mark local functions static
seunshare.c:92:6: warning: no previous prototype for ‘handler’ [-Wmissing-prototypes] 92 | void handler(int sig) { | ^~~~~~~ Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
This commit is contained in:
parent
081ac391ad
commit
55c30addf6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user