mirror of https://github.com/krallin/tini.git
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.
This commit is contained in:
parent
79016ecced
commit
9ecda1bbf1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue