9pfuse: use intptr to silence 64-bit warning (Michael Teichgräber)

This commit is contained in:
Russ Cox 2008-03-06 15:21:09 -05:00
parent 350f4d3ede
commit 29770b4f21

View file

@ -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)