From ce4cb41794e853e80bd4924ab383ef0424c50e3e Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Tue, 11 Apr 2017 13:12:02 +0200 Subject: irmd: Fix mixed declaration --- src/irmd/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/irmd') diff --git a/src/irmd/main.c b/src/irmd/main.c index 5e5039b1..23acfcee 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -2131,14 +2131,14 @@ int main(int argc, { struct sigaction sig_act; sigset_t sigset; + bool use_stdout = false; + sigemptyset(&sigset); sigaddset(&sigset, SIGINT); sigaddset(&sigset, SIGQUIT); sigaddset(&sigset, SIGHUP); sigaddset(&sigset, SIGPIPE); - bool use_stdout = false; - if (geteuid() != 0) { log_err("IPC Resource Manager must be run as root."); exit(EXIT_FAILURE); -- cgit v1.2.3