summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2017-04-14 15:11:32 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2017-04-14 15:11:32 +0000
commitcb86cf1d0a8b0ff425f19dd2f57b623b9b52934b (patch)
treea9e2d50d2934ca8d21e8a3b8a9cb529578f28cd2 /sys/kern
parent39a138bc07c10a0f4c5b2355ab9bb42d26668572 (diff)
Avoid some false positives with cppcheck. No binary change.
OK jsg@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index fd64f0d4ae8..de0e1cb5a0f 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig.c,v 1.209 2017/04/13 03:52:25 guenther Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.210 2017/04/14 15:11:31 bluhm Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
@@ -646,7 +646,7 @@ killpg1(struct proc *cp, int signum, int pgid, int all)
struct pgrp *pgrp;
int nfound = 0;
- if (all)
+ if (all) {
/*
* broadcast
*/
@@ -659,7 +659,7 @@ killpg1(struct proc *cp, int signum, int pgid, int all)
if (signum)
prsignal(pr, signum);
}
- else {
+ } else {
if (pgid == 0)
/*
* zero pgid means send to my process group.