From 82c76535f601d91f2fa77d8877302a201ed5135e Mon Sep 17 00:00:00 2001 Message-Id: <82c76535f601d91f2fa77d8877302a201ed5135e.1715466915.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 20 Oct 2012 12:58:56 +0100 Subject: [PATCH] sel/sig.c: Discard return value without provoking other warnings. Organization: Straylight/Edgeware From: Mark Wooding --- sel/sig.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sel/sig.c b/sel/sig.c index a1dc352..bc55912 100644 --- a/sel/sig.c +++ b/sel/sig.c @@ -72,12 +72,11 @@ static unsigned nsig; static void sig_handler(int n) { - int hunoz; int e = errno; unsigned char sch = (unsigned char)n; sigprocmask(SIG_BLOCK, &ss_all, 0); sigaddset(&ss_caught, n); - hunoz = write(sigfd, &sch, 1); + if (write(sigfd, &sch, 1)) /*hunoz*/; /* The system should reset the signal mask here. */ errno = e; } -- [mdw]