summaryrefslogtreecommitdiffstats
path: root/utils/mount/network.c
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2009-10-17 09:16:18 -0400
committerSteve Dickson <steved@redhat.com>2009-10-22 15:34:20 -0400
commit2f61f62ac777cc03e30513f6fd3699f9e2f04e27 (patch)
treede0a18d8076179c77b6effd70bf49274879df89b /utils/mount/network.c
parentf87ae8235ae6042c0e514ba03e4eee7782d5bc6e (diff)
downloadnfs-utils-2f61f62ac777cc03e30513f6fd3699f9e2f04e27.tar.gz
nfs-utils-2f61f62ac777cc03e30513f6fd3699f9e2f04e27.tar.xz
nfs-utils-2f61f62ac777cc03e30513f6fd3699f9e2f04e27.zip
Introducing the parsing of both 'defaultvers' and 'defaultproto'
config variables which will be used to set the the default version and network protocol. A global variable will be set for each option with the corresponding value. The value will be used as the initial value in the server negation. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/network.c')
-rw-r--r--utils/mount/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mount/network.c b/utils/mount/network.c
index bd621be..1a05351 100644
--- a/utils/mount/network.c
+++ b/utils/mount/network.c
@@ -1261,7 +1261,7 @@ nfs_nfs_version(struct mount_options *options, unsigned long *version)
* Returns TRUE if @protocol contains a valid value for this option,
* or FALSE if the option was specified with an invalid value.
*/
-static int
+int
nfs_nfs_protocol(struct mount_options *options, unsigned long *protocol)
{
char *option;