From b8b32b81b482f35f7c36ae9dd266028af613c3dc Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 Nov 2015 17:44:43 +0000 Subject: - Fix selfpipe_read() invocation: the return is int, not char - Easier CROSS_COMPILE support in configure --- src/conn-tools/s6-ioconnect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/conn-tools') 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 ; -- cgit v1.2.3