aboutsummaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-20 16:47:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-20 16:47:05 +0000
commitc5031be4899ea516635ef7c65a6f82b3b45860b9 (patch)
tree10948eb4aface28e80d6a075fecf11fad3075618 /client.c
parentMerge branch 'decset-1047-and-1048' (diff)
parentdebug: rename assert() to xassert(), to avoid clashing with <assert.h> (diff)
Merge branch 'stacktrace'
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index 58a500eb..80eb8b40 100644
--- a/client.c
+++ b/client.c
@@ -4,7 +4,6 @@
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
-#include <assert.h>
#include <getopt.h>
#include <signal.h>
#include <errno.h>
@@ -16,6 +15,7 @@
#define LOG_ENABLE_DBG 0
#include "log.h"
#include "client-protocol.h"
+#include "debug.h"
#include "foot-features.h"
#include "version.h"
#include "xmalloc.h"
@@ -329,7 +329,7 @@ main(int argc, char *const *argv)
ssize_t rcvd = recv(fd, &exit_code, sizeof(exit_code), 0);
if (rcvd == -1 && errno == EINTR)
- assert(aborted);
+ xassert(aborted);
else if (rcvd != sizeof(exit_code))
LOG_ERRNO("failed to read server response");
else