diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2007-07-16 16:29:06 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-07-20 16:10:55 +1000 |
commit | c7cec7fbd3fc9f46a17519d95b8211cf78e328c0 (patch) | |
tree | ae63d4acdb5363acbd8b97cbff121c16aaa8d17e /utils/mount/nfs4mount.c | |
parent | 14f4a50b4b51bc4bdf56cfd43d8ae598579c4e6d (diff) | |
download | nfs-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/nfs4mount.c')
-rw-r--r-- | utils/mount/nfs4mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/mount/nfs4mount.c b/utils/mount/nfs4mount.c index a0a1cab..1cbeafa 100644 --- a/utils/mount/nfs4mount.c +++ b/utils/mount/nfs4mount.c @@ -167,7 +167,7 @@ static int get_my_ipv4addr(char *ip_addr, int len) return 0; } -int nfs4mount(const char *spec, const char *node, int *flags, +int nfs4mount(const char *spec, const char *node, int flags, char **extra_opts, int running_bg, int fake) { static struct nfs4_mount_data data; @@ -444,7 +444,7 @@ int nfs4mount(const char *spec, const char *node, int *flags, if (!fake) { if (mount(spec, node, "nfs4", - *flags & ~(MS_USER|MS_USERS), &data)) { + flags & ~(MS_USER|MS_USERS), &data)) { mount_error(spec, node, errno); goto fail; } |