summaryrefslogtreecommitdiffstats
path: root/src/stat.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/stat.c
parent096884c4fe1fb922eab2797d4583ca2ae8ae2600 (diff)
downloadbfs-b4c7112bafe9b85f3a039a8b34fef2c1f2fa3b58.tar.xz
bfstd: Rename from util and reorganize it
Diffstat (limited to 'src/stat.c')
-rw-r--r--src/stat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stat.c b/src/stat.c
index 3134b6a..b59e9b0 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -15,8 +15,8 @@
****************************************************************************/
#include "stat.h"
+#include "bfstd.h"
#include "config.h"
-#include "util.h"
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
@@ -186,7 +186,7 @@ static int bfs_statx_impl(int at_fd, const char *at_path, int at_flags, struct b
buf->mask = 0;
- buf->dev = bfs_makedev(xbuf.stx_dev_major, xbuf.stx_dev_minor);
+ buf->dev = xmakedev(xbuf.stx_dev_major, xbuf.stx_dev_minor);
buf->mask |= BFS_STAT_DEV;
if (xbuf.stx_mask & STATX_INO) {
@@ -227,7 +227,7 @@ static int bfs_statx_impl(int at_fd, const char *at_path, int at_flags, struct b
buf->mask |= BFS_STAT_BLOCKS;
}
- buf->rdev = bfs_makedev(xbuf.stx_rdev_major, xbuf.stx_rdev_minor);
+ buf->rdev = xmakedev(xbuf.stx_rdev_major, xbuf.stx_rdev_minor);
buf->mask |= BFS_STAT_RDEV;
buf->attrs = xbuf.stx_attributes;