diff options
author | 2011-04-06 18:14:35 +0000 | |
---|---|---|
committer | 2011-04-06 18:14:35 +0000 | |
commit | e95f259b8f2ebc2e2df11cf010fde4242726d00f (patch) | |
tree | 7dbe817f2b7e038260f1dd3faf3ccb4a9b5ab250 | |
parent | Use bdev_decl() to get block device function prototypes instead of rolling (diff) | |
download | wireguard-openbsd-e95f259b8f2ebc2e2df11cf010fde4242726d00f.tar.xz wireguard-openbsd-e95f259b8f2ebc2e2df11cf010fde4242726d00f.zip |
Correctly protect the arguments of the AIC_ASSERT() macro.
-rw-r--r-- | sys/dev/ic/aic6360var.h | 4 |
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(); \ |