Skip to content

Commit

Permalink
main: replace assert(false) with abort().
Browse files Browse the repository at this point in the history
  • Loading branch information
ericonr authored and emersion committed Feb 2, 2021
1 parent 0689427 commit 7dafac7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
Expand Down Expand Up @@ -857,7 +856,7 @@ static int handle_signal(int sig, void *data) {
}
return 1;
}
assert(false); // not reached
abort(); // not reached
}

static int display_event(int fd, uint32_t mask, void *data) {
Expand Down

0 comments on commit 7dafac7

Please sign in to comment.