diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-05-18 16:44:30 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-05-18 16:46:13 -0400 |
commit | 526133c11eb9a26a4cffb20bcd10bcbb36d940de (patch) | |
tree | 26787e3cc22df2c44837f72f6ff919ab7808a8f6 /src/exec.c | |
parent | 63a52b1bfc99c58f0a944174282da79aab5bde3a (diff) | |
download | bfs-526133c11eb9a26a4cffb20bcd10bcbb36d940de.tar.xz |
Switch from assert() to bfs_assert()/bfs_verify()
Diffstat (limited to 'src/exec.c')
-rw-r--r-- | src/exec.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -10,7 +10,6 @@ #include "diag.h" #include "dstring.h" #include "xspawn.h" -#include <assert.h> #include <errno.h> #include <fcntl.h> #include <stdarg.h> @@ -276,12 +275,12 @@ static void bfs_exec_free_arg(char *arg, const char *tmpl) { /** Open a file to use as the working directory. */ static int bfs_exec_openwd(struct bfs_exec *execbuf, const struct BFTW *ftwbuf) { - assert(execbuf->wd_fd < 0); - assert(!execbuf->wd_path); + bfs_assert(execbuf->wd_fd < 0); + bfs_assert(!execbuf->wd_path); if (ftwbuf->at_fd != AT_FDCWD) { // Rely on at_fd being the immediate parent - assert(xbaseoff(ftwbuf->at_path) == 0); + bfs_assert(xbaseoff(ftwbuf->at_path) == 0); execbuf->wd_fd = ftwbuf->at_fd; if (!(execbuf->flags & BFS_EXEC_MULTI)) { |