From: Chuck Lever Date: Sat, 18 Apr 2009 13:45:46 +0000 (-0400) Subject: umount.nfs: Fix return value of nfs_mount_protocol() X-Git-Tag: nfs-utils-1-1-6-rc7 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=c062f45deebc20dae5eb8cdb50fb03fb1c252b47 umount.nfs: Fix return value of nfs_mount_protocol() Fix a copy-paste error introduced in nfs_mount_protocol(). It should return an IPPROTO_ number, not an NFS version number. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/utils/mount/network.c b/utils/mount/network.c index 234e7f3..72f4b84 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -1337,7 +1337,7 @@ static unsigned short nfs_mount_protocol(struct mount_options *options) return IPPROTO_UDP; } - return nfs_nfs_version(options); + return nfs_nfs_protocol(options); } /*