}
}
static char *versions[] = {"v2", "v3", "v4", "vers", "nfsvers", NULL};
-int inline check_vers(char *mopt, char *field)
+static int
+check_vers(char *mopt, char *field)
{
int i, found=0;
unsigned long config_default_vers;
unsigned long config_default_proto;
+extern sa_family_t config_default_family;
+
/*
* Check to see if a default value is being set.
* If so, set the appropriate global value which will
* be used as the initial value in the server negation.
*/
-int inline default_value(char *mopt)
+static int
+default_value(char *mopt)
{
struct mount_options *options = NULL;
int dftlen = strlen("default");
xlog_warn("Unable to set default protocol : %s",
strerror(errno));
}
+ if (!nfs_nfs_proto_family(options, &config_default_family)) {
+ xlog_warn("Unable to set default family : %s",
+ strerror(errno));
+ }
} else {
xlog_warn("Unable to alloc memory for default protocol");
}