Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 PR/50945: David Binderman: sprinkle...
details: https://anonhg.NetBSD.org/src/rev/ee6cd78d5b9b
branches: trunk
changeset: 344053:ee6cd78d5b9b
user: christos <christos%NetBSD.org@localhost>
date: Fri Mar 11 18:31:03 2016 +0000
description:
PR/50945: David Binderman: sprinkle parens
diffstat:
sys/arch/sparc64/sparc64/compat_16_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 039791cb23ed -r ee6cd78d5b9b sys/arch/sparc64/sparc64/compat_16_machdep.c
--- a/sys/arch/sparc64/sparc64/compat_16_machdep.c Fri Mar 11 18:29:48 2016 +0000
+++ b/sys/arch/sparc64/sparc64/compat_16_machdep.c Fri Mar 11 18:31:03 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_16_machdep.c,v 1.15 2009/11/21 04:16:52 rmind Exp $ */
+/* $NetBSD: compat_16_machdep.c,v 1.16 2016/03/11 18:31:03 christos Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.15 2009/11/21 04:16:52 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.16 2016/03/11 18:31:03 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -288,7 +288,8 @@
}
#endif
scp = SCARG(uap, sigcntxp);
- if ((vaddr_t)scp & 3 || (error = copyin((void *)scp, &sc, sizeof sc) != 0))
+ if (((vaddr_t)scp & 3) != 0 ||
+ (error = copyin((void *)scp, &sc, sizeof sc)) != 0)
#ifdef DEBUG
{
printf("sigreturn14: copyin failed: scp=%p\n", scp);
Home |
Main Index |
Thread Index |
Old Index