summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-06 17:47:23 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-06 17:47:23 -0500
commitb4c7112bafe9b85f3a039a8b34fef2c1f2fa3b58 (patch)
tree4dbd16b8dac10609434eb8744f95762c4d178c19 /src/eval.c
parent096884c4fe1fb922eab2797d4583ca2ae8ae2600 (diff)
downloadbfs-b4c7112bafe9b85f3a039a8b34fef2c1f2fa3b58.tar.xz
bfstd: Rename from util and reorganize it
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index dc79188..5bf3120 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -20,6 +20,7 @@
#include "eval.h"
#include "bar.h"
+#include "bfstd.h"
#include "bftw.h"
#include "color.h"
#include "config.h"
@@ -36,7 +37,6 @@
#include "pwcache.h"
#include "stat.h"
#include "trie.h"
-#include "util.h"
#include "xregex.h"
#include "xtime.h"
#include <assert.h>
@@ -686,8 +686,8 @@ bool eval_fls(const struct bfs_expr *expr, struct bfs_eval *state) {
}
if (ftwbuf->type == BFS_BLK || ftwbuf->type == BFS_CHR) {
- int ma = bfs_major(statbuf->rdev);
- int mi = bfs_minor(statbuf->rdev);
+ int ma = xmajor(statbuf->rdev);
+ int mi = xminor(statbuf->rdev);
if (fprintf(file, " %3d, %3d", ma, mi) < 0) {
goto error;
}