summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-04-06 18:14:35 +0000
committermiod <miod@openbsd.org>2011-04-06 18:14:35 +0000
commite95f259b8f2ebc2e2df11cf010fde4242726d00f (patch)
tree7dbe817f2b7e038260f1dd3faf3ccb4a9b5ab250
parentUse bdev_decl() to get block device function prototypes instead of rolling (diff)
downloadwireguard-openbsd-e95f259b8f2ebc2e2df11cf010fde4242726d00f.tar.xz
wireguard-openbsd-e95f259b8f2ebc2e2df11cf010fde4242726d00f.zip
Correctly protect the arguments of the AIC_ASSERT() macro.
-rw-r--r--sys/dev/ic/aic6360var.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/aic6360var.h b/sys/dev/ic/aic6360var.h
index 228bedf8ce0..d0c4dceb0fe 100644
--- a/sys/dev/ic/aic6360var.h
+++ b/sys/dev/ic/aic6360var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic6360var.h,v 1.7 2011/04/03 12:42:36 krw Exp $ */
+/* $OpenBSD: aic6360var.h,v 1.8 2011/04/06 18:14:35 miod Exp $ */
/* $NetBSD: aic6360.c,v 1.52 1996/12/10 21:27:51 thorpej Exp $ */
/*
@@ -197,7 +197,7 @@ struct aic_softc {
do { if ((aic_debug & AIC_DOBREAK) != 0) Debugger(); } while (0)
#define AIC_ASSERT(x) \
do { \
- if (!x) { \
+ if (!(x)) { \
printf("%s at line %d: assertion failed\n", \
sc->sc_dev.dv_xname, __LINE__); \
Debugger(); \