diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2011-09-27 08:50:37 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2011-09-27 08:50:37 +0000 |
commit | adf8002bac4ea894443b60038dae4c7a3538f9c1 (patch) | |
tree | 584bd5892a4f1ff05f7f1a3612c8134b8a2506e2 /sbin/hastd/event.c | |
parent | be1143efb9d7d6662e93493c29def90cb7e9d5c8 (diff) | |
download | src-adf8002bac4ea894443b60038dae4c7a3538f9c1.tar.gz src-adf8002bac4ea894443b60038dae4c7a3538f9c1.zip |
Use PJDLOG_ASSERT() and PJDLOG_ABORT() everywhere instead of assert().
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=225787
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 d772f692ba2e..d895f670177a 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; |