diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-11-06 17:47:23 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-11-06 17:47:23 -0500 |
commit | b4c7112bafe9b85f3a039a8b34fef2c1f2fa3b58 (patch) | |
tree | 4dbd16b8dac10609434eb8744f95762c4d178c19 /src/stat.c | |
parent | 096884c4fe1fb922eab2797d4583ca2ae8ae2600 (diff) | |
download | bfs-b4c7112bafe9b85f3a039a8b34fef2c1f2fa3b58.tar.xz |
bfstd: Rename from util and reorganize it
Diffstat (limited to 'src/stat.c')
-rw-r--r-- | src/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |