diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/conn-tools/s6-ioconnect.c | 3 | ||||
-rw-r--r-- | src/supervision/s6-supervise.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/conn-tools/s6-ioconnect.c b/src/conn-tools/s6-ioconnect.c index 01966cf..abd309b 100644 --- a/src/conn-tools/s6-ioconnect.c +++ b/src/conn-tools/s6-ioconnect.c @@ -55,8 +55,7 @@ static void handle_signals (void) { for (;;) { - char c = selfpipe_read() ; - switch (c) + switch (selfpipe_read()) { case -1 : strerr_diefu1sys(111, "selfpipe_read") ; case 0 : return ; diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c index 80ba5f8..2e8fa38 100644 --- a/src/supervision/s6-supervise.c +++ b/src/supervision/s6-supervise.c @@ -500,8 +500,7 @@ static inline void handle_signals (void) { for (;;) { - char c = selfpipe_read() ; - switch (c) + switch (selfpipe_read()) { case -1 : strerr_diefu1sys(111, "selfpipe_read") ; case 0 : return ; |