1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

Use temporary variable to avoid double expansion of macro with side effects.

Found by:       FlexeLint
This commit is contained in:
Poul-Henning Kamp 2003-05-31 18:46:45 +00:00
parent c7b24d7dcd
commit ff81e317d4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115486
2 changed files with 7 additions and 2 deletions

View File

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

View File

@ -418,8 +418,10 @@ umapfs_vptofh(vp, fhp)
struct vnode *vp;
struct fid *fhp;
{
struct vnode *lvp;
return (VFS_VPTOFH(UMAPVPTOLOWERVP(vp), fhp));
lvp = UMAPVPTOLOWERVP(vp);
return (VFS_VPTOFH(lvp, fhp));
}
static int