diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 20:16:00 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 20:16:00 +0000 |
| commit | e56136ce1192d04a52b01ccb41284f0b7896430e (patch) | |
| tree | 10948eb4aface28e80d6a075fecf11fad3075618 /server.c | |
| parent | Print stack trace on assert() failure or when calling fatal_error() (diff) | |
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
Diffstat (limited to 'server.c')
| -rw-r--r-- | server.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -123,7 +123,7 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data) if (events & EPOLLHUP) goto shutdown; - assert(events & EPOLLIN); + xassert(events & EPOLLIN); if (client->term != NULL) { uint8_t dummy[128]; @@ -186,9 +186,9 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data) /* All initialization data received - time to instantiate a terminal! */ - assert(client->term == NULL); - assert(client->buffer.data != NULL); - assert(client->buffer.left == 0); + xassert(client->term == NULL); + xassert(client->buffer.data != NULL); + xassert(client->buffer.left == 0); /* * Parse the received buffer, verifying lengths etc |
