diff options
author | pjd <pjd@FreeBSD.org> | 2011-09-27 08:50:37 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-09-27 08:50:37 +0000 |
commit | 2c59e5d5437fcd48c72ceeb06f5aacd65ad2e2be (patch) | |
tree | 584bd5892a4f1ff05f7f1a3612c8134b8a2506e2 /sbin/hastd/event.c | |
parent | 1f93bdc27f698c83f830a67a9da0f5991ea476fb (diff) | |
download | FreeBSD-src-2c59e5d5437fcd48c72ceeb06f5aacd65ad2e2be.zip FreeBSD-src-2c59e5d5437fcd48c72ceeb06f5aacd65ad2e2be.tar.gz |
Use PJDLOG_ASSERT() and PJDLOG_ABORT() everywhere instead of assert().
MFC after: 3 days
Diffstat (limited to 'sbin/hastd/event.c')
-rw-r--r-- | sbin/hastd/event.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sbin/hastd/event.c b/sbin/hastd/event.c index d772f69..d895f67 100644 --- a/sbin/hastd/event.c +++ b/sbin/hastd/event.c @@ -27,7 +27,6 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include <assert.h> #include <errno.h> #include "hast.h" @@ -46,8 +45,8 @@ event_send(const struct hast_resource *res, int event) struct nv *nvin, *nvout; int error; - assert(res != NULL); - assert(event >= EVENT_MIN && event <= EVENT_MAX); + PJDLOG_ASSERT(res != NULL); + PJDLOG_ASSERT(event >= EVENT_MIN && event <= EVENT_MAX); nvin = nvout = NULL; @@ -89,7 +88,7 @@ event_recv(const struct hast_resource *res) uint8_t event; int error; - assert(res != NULL); + PJDLOG_ASSERT(res != NULL); nvin = nvout = NULL; |