summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-11-30 17:44:43 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-11-30 17:44:43 +0000
commitb8b32b81b482f35f7c36ae9dd266028af613c3dc (patch)
tree3884ea82d3157ff7a0a9acc567f3eda0d4af2aa3 /src
parent2524544fa0c6ca061b6d22d4e94173a3ee1289c3 (diff)
downloads6-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.c3
-rw-r--r--src/supervision/s6-supervise.c3
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 ;