summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2016-03-01 19:17:37 +0000
committermmcc <mmcc@openbsd.org>2016-03-01 19:17:37 +0000
commit3870118e4f70869b1aafe836d1f30fbf296da65b (patch)
tree39d8f50c89de454a4d14ecd4cad6f299078d5301
parenttidy up function declarations and definitions (diff)
downloadwireguard-openbsd-3870118e4f70869b1aafe836d1f30fbf296da65b.tar.xz
wireguard-openbsd-3870118e4f70869b1aafe836d1f30fbf296da65b.zip
guard macro args with parens
from Michal Mazurek, ok deraadt@
-rw-r--r--sys/arch/alpha/include/cpu.h4
-rw-r--r--sys/arch/mips64/include/cpu.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/alpha/include/cpu.h b/sys/arch/alpha/include/cpu.h
index 6ddc4108e88..71c9c9cf6a9 100644
--- a/sys/arch/alpha/include/cpu.h
+++ b/sys/arch/alpha/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.55 2015/07/02 01:33:59 dlg Exp $ */
+/* $OpenBSD: cpu.h,v 1.56 2016/03/01 19:17:37 mmcc Exp $ */
/* $NetBSD: cpu.h,v 1.45 2000/08/21 02:03:12 thorpej Exp $ */
/*-
@@ -320,7 +320,7 @@ do { \
#define signotify(p) aston(p)
#endif
-#define aston(p) (p)->p_md.md_astpending = 1
+#define aston(p) ((p)->p_md.md_astpending = 1)
#endif /* _KERNEL */
/*
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index 503a84c0571..e8ce3a60464 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.108 2016/01/05 05:27:54 visa Exp $ */
+/* $OpenBSD: cpu.h,v 1.109 2016/03/01 19:17:37 mmcc Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -318,12 +318,12 @@ void cp0_calibrate(struct cpu_info *);
* process as soon as possible.
*/
#ifdef MULTIPROCESSOR
-#define signotify(p) (aston(p), cpu_unidle(p->p_cpu))
+#define signotify(p) (aston(p), cpu_unidle((p)->p_cpu))
#else
#define signotify(p) aston(p)
#endif
-#define aston(p) p->p_md.md_astpending = 1
+#define aston(p) ((p)->p_md.md_astpending = 1)
#ifdef CPU_R8000
#define mips_sync() __asm__ volatile ("lw $0, 0(%0)" :: \