summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-05-20 22:04:19 +0000
committerarr <arr@FreeBSD.org>2002-05-20 22:04:19 +0000
commit56aea61cc918b4c5a9bfed9b0f210f57b7f2f8b3 (patch)
tree5e45d8345f3b777814ede07a0428175d57a2349d
parent6fe64080f2001cfff44e5b96534771c4b6405fcb (diff)
downloadFreeBSD-src-56aea61cc918b4c5a9bfed9b0f210f57b7f2f8b3.zip
FreeBSD-src-56aea61cc918b4c5a9bfed9b0f210f57b7f2f8b3.tar.gz
- Turn a DIAGNOSTIC into an INVARIANTS since it's a sanity check. Use
proper ``if'' statement style.
-rw-r--r--sys/netinet/if_atm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/if_atm.c b/sys/netinet/if_atm.c
index 83fe027..acad219 100644
--- a/sys/netinet/if_atm.c
+++ b/sys/netinet/if_atm.c
@@ -125,8 +125,9 @@ atm_rtrequest(req, rt, info)
break;
}
-#ifdef DIAGNOSTIC
- if (rt->rt_ifp->if_ioctl == NULL) panic("atm null ioctl");
+#ifdef INVARIANTS
+ if (rt->rt_ifp->if_ioctl == NULL)
+ panic("atm_rtrequest: atm null ioctl");
#endif
#ifdef NATM
OpenPOWER on IntegriCloud