aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-03-06 15:21:09 -0500
committerRuss Cox <rsc@swtch.com>2008-03-06 15:21:09 -0500
commit29770b4f21c6d7147b5bfede67b0d28cd3028b57 (patch)
tree6492219c19c5d0ccd46f13af7def82e0026dc190 /src/cmd/9pfuse
parent350f4d3ede30defbe2956199a67fbb2304f549d7 (diff)
downloadplan9port-29770b4f21c6d7147b5bfede67b0d28cd3028b57.tar.gz
plan9port-29770b4f21c6d7147b5bfede67b0d28cd3028b57.tar.bz2
plan9port-29770b4f21c6d7147b5bfede67b0d28cd3028b57.zip
9pfuse: use intptr to silence 64-bit warning (Michael Teichgräber)
Diffstat (limited to 'src/cmd/9pfuse')
-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)