diff options
author | Jean-Pierre André <jpandre@users.sourceforge.net> | 2012-08-22 10:00:22 +0200 |
---|---|---|
committer | Jean-Pierre André <jpandre@users.sourceforge.net> | 2012-08-22 10:00:22 +0200 |
commit | d4b3c998c04514bdef03e97c5885430165254874 (patch) | |
tree | 2b57f4f7e3e01c8aa3f5ebaab3d52128186e75d0 | |
parent | 38076fc950bb74d1f5975e4d65e8b6c4e32a9bd9 (diff) | |
download | illumos-fusefs-d4b3c998c04514bdef03e97c5885430165254874.tar.gz |
Fixed the dangerous definition for the macro VNODE_TO_NODEID()
-rw-r--r-- | kernel/fuse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fuse.h b/kernel/fuse.h index cbe3a63..865b54d 100644 --- a/kernel/fuse.h +++ b/kernel/fuse.h @@ -128,7 +128,7 @@ typedef struct fuse_vnode_data { } fuse_vnode_data_t; /* Get nodeid from the struct vnode */ -#define VNODE_TO_NODEID(vp) ((struct fuse_vnode_data *)vp->v_data)->nodeid +#define VNODE_TO_NODEID(vp) ((struct fuse_vnode_data *)(vp)->v_data)->nodeid /* * Max number of pages that can be used in a single read request * (used in FreeBSD Fuse) |