From 9ecda1bbf1b921f15d83dfd06b0750b984748c00 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 18 Dec 2016 18:18:45 +0100 Subject: [PATCH] fix C conformance Someone has been writing too much Go recently. This works because `errno` is typically a macro coming with its own set of parens. --- src/tini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tini.c b/src/tini.c index 60d4d88..90ee3e8 100644 --- a/src/tini.c +++ b/src/tini.c @@ -156,7 +156,7 @@ int spawn(const signal_configuration_t* const sigconf_ptr, char* const argv[], i // and exit with the correct return status for the error that we encountered // See: http://www.tldp.org/LDP/abs/html/exitcodes.html#EXITCODESREF int status = 1; - switch errno { + switch (errno) { case ENOENT: status = 127; break;