mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Clean up style(9) nits
This commit is contained in:
parent
0cb9915474
commit
dd104b3305
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=232483
@ -283,11 +283,11 @@ hpfs_mountfs(devvp, mp, td)
|
||||
hpmp->hpm_devvp = devvp;
|
||||
hpmp->hpm_dev = devvp->v_rdev;
|
||||
hpmp->hpm_mp = mp;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1)
|
||||
hpmp->hpm_uid = v;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1)
|
||||
hpmp->hpm_gid = v;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v) == 1)
|
||||
hpmp->hpm_mode = v;
|
||||
|
||||
error = hpfs_bminit(hpmp);
|
||||
|
@ -149,13 +149,13 @@ update_mp(struct mount *mp, struct thread *td)
|
||||
}
|
||||
}
|
||||
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1)
|
||||
pmp->pm_gid = v;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1)
|
||||
pmp->pm_uid = v;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "mask", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "mask", "%d", &v) == 1)
|
||||
pmp->pm_mask = v & ALLPERMS;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "dirmask", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "dirmask", "%d", &v) == 1)
|
||||
pmp->pm_dirmask = v & ALLPERMS;
|
||||
vfs_flagopt(mp->mnt_optnew, "shortname",
|
||||
&pmp->pm_flags, MSDOSFSMNT_SHORTNAME);
|
||||
|
@ -345,11 +345,11 @@ ntfs_mountfs(devvp, mp, td)
|
||||
|
||||
ntmp->ntm_mountp = mp;
|
||||
ntmp->ntm_devvp = devvp;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1)
|
||||
ntmp->ntm_uid = v;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1)
|
||||
ntmp->ntm_gid = v;
|
||||
if (1 == vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v))
|
||||
if (vfs_scanopt(mp->mnt_optnew, "mode", "%d", &v) == 1)
|
||||
ntmp->ntm_mode = v & ACCESSPERMS;
|
||||
vfs_flagopt(mp->mnt_optnew,
|
||||
"caseins", &ntmp->ntm_flag, NTFS_MFLAG_CASEINS);
|
||||
|
Loading…
Reference in New Issue
Block a user