summaryrefslogtreecommitdiffstats
path: root/utils/mount/mount.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-07-16 16:29:06 -0400
committerNeil Brown <neilb@suse.de>2007-07-20 16:10:55 +1000
commitc7cec7fbd3fc9f46a17519d95b8211cf78e328c0 (patch)
treeae63d4acdb5363acbd8b97cbff121c16aaa8d17e /utils/mount/mount.c
parent14f4a50b4b51bc4bdf56cfd43d8ae598579c4e6d (diff)
downloadnfs-utils-c7cec7fbd3fc9f46a17519d95b8211cf78e328c0.tar.gz
nfs-utils-c7cec7fbd3fc9f46a17519d95b8211cf78e328c0.tar.xz
nfs-utils-c7cec7fbd3fc9f46a17519d95b8211cf78e328c0.zip
mount.nfs: Change *flags to flags
It's not necessary to treat the *flags parameter to nfsmount and nfs4mount as an output parameter. Nothing is passed back. Replace it with a normal call-by-value. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/mount/mount.c')
-rw-r--r--utils/mount/mount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/mount/mount.c b/utils/mount/mount.c
index bd7e25c..2b211b9 100644
--- a/utils/mount/mount.c
+++ b/utils/mount/mount.c
@@ -468,9 +468,9 @@ int main(int argc, char *argv[])
exit(EX_FAIL);
if (strcmp(fs_type, "nfs4") == 0)
- mnt_err = nfs4mount(spec, mount_point, &flags, &extra_opts, 0, fake);
+ mnt_err = nfs4mount(spec, mount_point, flags, &extra_opts, 0, fake);
else
- mnt_err = nfsmount(spec, mount_point, &flags, &extra_opts, 0, fake);
+ mnt_err = nfsmount(spec, mount_point, flags, &extra_opts, 0, fake);
if (mnt_err)
exit(EX_FAIL);