From b4c7112bafe9b85f3a039a8b34fef2c1f2fa3b58 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 6 Nov 2022 17:47:23 -0500 Subject: bfstd: Rename from util and reorganize it --- src/stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/stat.c') 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 #include #include @@ -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; -- cgit v1.2.3