aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-01-16 20:16:00 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-01-16 20:16:00 +0000
commite56136ce1192d04a52b01ccb41284f0b7896430e (patch)
tree10948eb4aface28e80d6a075fecf11fad3075618 /server.c
parentPrint 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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server.c b/server.c
index e6c3aae3..c5db036d 100644
--- a/server.c
+++ b/server.c
@@ -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