Skip to content

Commit

Permalink
fix C conformance
Browse files Browse the repository at this point in the history
Someone has been writing too much Go recently.  This works because
`errno` is typically a macro coming with its own set of parens.
  • Loading branch information
akimd committed Dec 18, 2016
1 parent 79016ec commit 9ecda1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tini.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9ecda1b

Please sign in to comment.