Module Name: src Committed By: skrll Date: Fri Oct 14 08:37:05 UTC 2016
Modified Files: src/sys/kern: sys_process.c Log Message: KNF To generate a diff of this commit: cvs rdiff -u -r1.170 -r1.171 src/sys/kern/sys_process.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/sys_process.c diff -u src/sys/kern/sys_process.c:1.170 src/sys/kern/sys_process.c:1.171 --- src/sys/kern/sys_process.c:1.170 Thu Sep 29 20:40:53 2016 +++ src/sys/kern/sys_process.c Fri Oct 14 08:37:05 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_process.c,v 1.170 2016/09/29 20:40:53 christos Exp $ */ +/* $NetBSD: sys_process.c,v 1.171 2016/10/14 08:37:05 skrll Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -118,7 +118,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.170 2016/09/29 20:40:53 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.171 2016/10/14 08:37:05 skrll Exp $"); #include "opt_ptrace.h" #include "opt_ktrace.h" @@ -659,8 +659,7 @@ sys_ptrace(struct lwp *l, const struct s signo = tmp; tmp = 0; /* don't search for LWP */ } - } - else + } else tmp = -tmp; if (tmp > 0) { @@ -710,8 +709,7 @@ sys_ptrace(struct lwp *l, const struct s * the requested thread, and clear it for other threads. */ LIST_FOREACH(lt2, &t->p_lwps, l_sibling) { - if (lt != lt2) - { + if (lt != lt2) { lwp_lock(lt2); process_sstep(lt2, 0); lwp_unlock(lt2);