summaryrefslogtreecommitdiffstats
path: root/src/parse.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/parse.c
parentded8567215afa498295660d123159f26210e066a (diff)
downloadbfs-88581b9d505342e20d03cc4c6557d30c3f66f0f5.tar.xz
Use bfs_bug("...") over assert(!"...")
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c
index 55f1e74..807892c 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -638,7 +638,7 @@ static const char *parse_int(const struct parser_state *state, char **arg, const
break;
default:
- assert(!"Invalid int size");
+ bfs_bug("Invalid int size");
goto bad;
}
@@ -3492,7 +3492,7 @@ static const char *bftw_strategy_name(enum bftw_strategy strategy) {
return "eds";
}
- assert(!"Invalid strategy");
+ bfs_bug("Invalid strategy");
return "???";
}