mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-24 09:05:48 -04:00
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
This commit is contained in:
parent
22f25a9e4f
commit
e56136ce11
31 changed files with 387 additions and 388 deletions
4
reaper.c
4
reaper.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue