git: 3f550f019185 - main - timeout: style fixes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Oct 2021 09:04:14 UTC
The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=3f550f01918511ac73884828f98ad1eaae2c18b4 commit 3f550f01918511ac73884828f98ad1eaae2c18b4 Author: Baptiste Daroussin <bapt@FreeBSD.org> AuthorDate: 2021-10-20 08:44:32 +0000 Commit: Baptiste Daroussin <bapt@FreeBSD.org> CommitDate: 2021-10-20 08:44:32 +0000 timeout: style fixes --- usr.bin/timeout/timeout.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/timeout/timeout.c b/usr.bin/timeout/timeout.c index 6af795ba7408..d6b82373c0a1 100644 --- a/usr.bin/timeout/timeout.c +++ b/usr.bin/timeout/timeout.c @@ -127,7 +127,7 @@ sig_handler(int signo) return; } - switch(signo) { + switch (signo) { case 0: case SIGINT: case SIGHUP: @@ -237,13 +237,13 @@ main(int argc, char **argv) if (killsig != SIGKILL && killsig != SIGSTOP) signums[0] = killsig; - for (i = 0; i < sizeof(signums) / sizeof(signums[0]); i ++) + for (i = 0; i < sizeof(signums) / sizeof(signums[0]); i++) sigaddset(&signals.sa_mask, signums[i]); signals.sa_handler = sig_handler; signals.sa_flags = SA_RESTART; - for (i = 0; i < sizeof(signums) / sizeof(signums[0]); i ++) + for (i = 0; i < sizeof(signums) / sizeof(signums[0]); i++) if (signums[i] != -1 && signums[i] != 0 && sigaction(signums[i], &signals, NULL) == -1) err(EXIT_FAILURE, "sigaction()"); @@ -351,7 +351,7 @@ main(int argc, char **argv) if (WEXITSTATUS(pstat)) pstat = WEXITSTATUS(pstat); - else if(WIFSIGNALED(pstat)) + else if (WIFSIGNALED(pstat)) pstat = 128 + WTERMSIG(pstat); if (timedout && !preserve)