summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 18:46:45 +0000
committerphk <phk@FreeBSD.org>2003-05-31 18:46:45 +0000
commit2ebd6ca61ce9d49352ee0135f6ed05a24c08a505 (patch)
tree8c31e0288e21b4a33932d698c35249a9aea5339b /sys/fs/nullfs
parented8b540a0cf2bb66e86b249e597b2cd08589ea76 (diff)
downloadFreeBSD-src-2ebd6ca61ce9d49352ee0135f6ed05a24c08a505.zip
FreeBSD-src-2ebd6ca61ce9d49352ee0135f6ed05a24c08a505.tar.gz
Use temporary variable to avoid double expansion of macro with side effects.
Found by: FlexeLint
Diffstat (limited to 'sys/fs/nullfs')
-rw-r--r--sys/fs/nullfs/null_vfsops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index d6ca211..6ace172 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -391,7 +391,10 @@ nullfs_vptofh(vp, fhp)
struct vnode *vp;
struct fid *fhp;
{
- return VFS_VPTOFH(NULLVPTOLOWERVP(vp), fhp);
+ struct vnode *lvp;
+
+ lvp = NULLVPTOLOWERVP(vp);
+ return VFS_VPTOFH(lvp, fhp);
}
static int
OpenPOWER on IntegriCloud