aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-02-07 22:19:40 +0000
committersin <sin@2f30.org>2014-02-07 22:19:40 +0000
commit5fe27def6552bb8794121d1984ffc16176fb2f08 (patch)
tree94ffc7767fc5e173d042837657d37bbf04d43255
parentc1a8eb796394bae62f27e54c7929820420538e44 (diff)
No need for sigfd to be defined at file scope
-rw-r--r--sinit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sinit.c b/sinit.c
index 3f1626c..c18146b 100644
--- a/sinit.c
+++ b/sinit.c
@@ -34,8 +34,6 @@ static Sigmap dispatchsig[] = {
{ SIGINT, sigreboot },
};
-static int sigfd = -1;
-
#include "config.h"
int
@@ -43,6 +41,7 @@ main(void)
{
struct signalfd_siginfo siginfo;
sigset_t sigset;
+ int sigfd;
int i;
int ret;
ssize_t n;