diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-11-30 17:44:43 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-11-30 17:44:43 +0000 |
commit | b8b32b81b482f35f7c36ae9dd266028af613c3dc (patch) | |
tree | 3884ea82d3157ff7a0a9acc567f3eda0d4af2aa3 /src | |
parent | 2524544fa0c6ca061b6d22d4e94173a3ee1289c3 (diff) | |
download | s6-b8b32b81b482f35f7c36ae9dd266028af613c3dc.tar.xz |
- Fix selfpipe_read() invocation: the return is int, not char
- Easier CROSS_COMPILE support in configure
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 ; |