about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-12-07 13:11:58 -0800
committerLeah Neukirchen <leah@vuxu.org>2022-12-09 19:49:41 +0100
commit1babebc12c3ea8d3395f00c9607e863866c190fc (patch)
treee6a4c5c646c518138060329b7334206e9e2fa738
parent8d543fdb2115341ce7d2e3c2e866f2663fbe08c8 (diff)
downloadmblaze-1babebc12c3ea8d3395f00c9607e863866c190fc.tar.gz
mblaze-1babebc12c3ea8d3395f00c9607e863866c190fc.tar.xz
mblaze-1babebc12c3ea8d3395f00c9607e863866c190fc.zip
mlist: use fixed-width integer types for struct linux_dirent64 d_ino and d_off
-rw-r--r--mlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlist.c b/mlist.c
index 5debf99..20061d9 100644
--- a/mlist.c
+++ b/mlist.c
@@ -111,8 +111,8 @@ list(char *prefix, char *file)
 #include <sys/syscall.h>
 
 struct linux_dirent64 {
-	ino64_t d_ino;           /* 64-bit inode number */
-	off64_t d_off;           /* 64-bit offset to next structure */
+	uint64_t d_ino;          /* 64-bit inode number */
+	int64_t d_off;           /* 64-bit offset to next structure */
 	unsigned short d_reclen; /* Size of this dirent */
 	unsigned char d_type;    /* File type */
 	char d_name[];           /* Filename (null-terminated) */