aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse/fuse_kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9pfuse/fuse_kernel.h')
-rw-r--r--src/cmd/9pfuse/fuse_kernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/9pfuse/fuse_kernel.h b/src/cmd/9pfuse/fuse_kernel.h
index 67843acb..06ea220b 100644
--- a/src/cmd/9pfuse/fuse_kernel.h
+++ b/src/cmd/9pfuse/fuse_kernel.h
@@ -306,7 +306,7 @@ struct fuse_dirent {
char name[1];
};
-#define FUSE_NAME_OFFSET ((unsigned) ((struct fuse_dirent *) 0)->name)
+#define FUSE_NAME_OFFSET ((uintptr) ((struct fuse_dirent *) 0)->name)
#define FUSE_DIRENT_ALIGN(x) (((x) + sizeof(__u64) - 1) & ~(sizeof(__u64) - 1))
#define FUSE_DIRENT_SIZE(d) \
FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET + (d)->namelen)