diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2009-06-06 19:21:34 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2009-06-06 19:21:34 +0000 |
commit | 2f17909dd2a7364c8590dec921eebcff0a1c8ccd (patch) | |
tree | 4909f376442e12cbf1381ddf0bfa08e2c0e4f9cb /sys/dev/ic | |
parent | bad8cd0cb63e0647f22a34a0fc91ec06d1a03e9a (diff) |
- don't mess with assert()/__assert(), use KASSERT() instead
ok jsg@ thib@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/pdqreg.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ic/pdqreg.h b/sys/dev/ic/pdqreg.h index 7cbe3c66d63..2fe19c1ac3a 100644 --- a/sys/dev/ic/pdqreg.h +++ b/sys/dev/ic/pdqreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pdqreg.h,v 1.9 2002/06/02 22:50:00 deraadt Exp $ */ +/* $OpenBSD: pdqreg.h,v 1.10 2009/06/06 19:21:33 jasper Exp $ */ /* $NetBSD: pdqreg.h,v 1.6 1996/08/28 16:01:29 cgd Exp $ */ /*- @@ -54,11 +54,9 @@ #define PDQ_ASSERT(e) ((void)0) #else #ifdef __STDC__ -#define PDQ_ASSERT(e) ((e) ? (void)0 : \ - __assert("PDQ ", __FILE__, __LINE__, #e)) +#define PDQ_ASSERT(e) KASSERT(e) #else -#define PDQ_ASSERT(e) ((e) ? (void)0 : \ - __assert("PDQ ", __FILE__, __LINE__, "e")) +#define PDQ_ASSERT(e) KASSERT(e) #endif #endif #endif /* __NetBSD__ || __OpenBSD__ */ |