summaryrefslogtreecommitdiffstats
path: root/src/ctx.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-18 13:27:04 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-18 16:30:25 -0400
commit88581b9d505342e20d03cc4c6557d30c3f66f0f5 (patch)
tree1b777eee727acd3ca620c6287352e8e29e72045c /src/ctx.c
parentded8567215afa498295660d123159f26210e066a (diff)
downloadbfs-88581b9d505342e20d03cc4c6557d30c3f66f0f5.tar.xz
Use bfs_bug("...") over assert(!"...")
Diffstat (limited to 'src/ctx.c')
-rw-r--r--src/ctx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ctx.c b/src/ctx.c
index ff4a2a7..c4b2fb2 100644
--- a/src/ctx.c
+++ b/src/ctx.c
@@ -11,7 +11,6 @@
#include "stat.h"
#include "trie.h"
#include "xtime.h"
-#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
@@ -38,7 +37,7 @@ const char *debug_flag_name(enum debug_flags flag) {
break;
}
- assert(!"Unrecognized debug flag");
+ bfs_bug("Unrecognized debug flag");
return "???";
}