debug: rename assert() to xassert(), to avoid clashing with <assert.h>

This commit is contained in:
Craig Barnes 2021-01-16 20:16:00 +00:00
parent 22f25a9e4f
commit e56136ce11
31 changed files with 387 additions and 388 deletions

View file

@ -121,7 +121,7 @@ fdm_reap(struct fdm *fdm, int fd, int events, void *data)
if (hup && !pollin)
return false;
assert(pollin);
xassert(pollin);
struct signalfd_siginfo info;
ssize_t amount = read(reaper->fd, &info, sizeof(info));
@ -131,7 +131,7 @@ fdm_reap(struct fdm *fdm, int fd, int events, void *data)
return false;
}
assert((size_t)amount >= sizeof(info));
xassert((size_t)amount >= sizeof(info));
if (info.ssi_signo != SIGCHLD) {
LOG_WARN("got non-SIGCHLD signal: %d", info.ssi_signo);