aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-10-20 08:44:32 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-10-20 08:44:32 +0000
commit3f550f01918511ac73884828f98ad1eaae2c18b4 (patch)
tree9959979fb7a5620196cba604dbefcc3f72bc9cc1
parent68914dab436acf166b8f851c4fa0acecb7c7c510 (diff)
downloadsrc-3f550f01918511ac73884828f98ad1eaae2c18b4.tar.gz
src-3f550f01918511ac73884828f98ad1eaae2c18b4.zip
timeout: style fixes
-rw-r--r--usr.bin/timeout/timeout.c8
1 files 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)