mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
9pfuse: use intptr to silence 64-bit warning (Michael Teichgräber)
This commit is contained in:
parent
350f4d3ede
commit
29770b4f21
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue