else if (!strcmp(progname, "mount.nfs")) {
int need_statd = 0;
mnt_err = nfsmount(spec, mount_point, &flags,
- &extra_opts, &mount_opts, &nfs_mount_vers,
+ &extra_opts, &mount_opts,
0, &need_statd);
if (!mnt_err && !fake && need_statd)
start_statd();
#define AUTH_GSS_SPKMP 390011
#endif
-int nfsmount(const char *, const char *, int *, char **, char **, int *,
+int nfsmount(const char *, const char *, int *, char **, char **,
int, int *);
void mount_errors(char *, int, int);
int
nfsmount(const char *spec, const char *node, int *flags,
- char **extra_opts, char **mount_opts, int *nfs_mount_vers,
+ char **extra_opts, char **mount_opts,
int running_bg, int *need_statd)
{
static char *prev_bg_host;
time_t prevt;
time_t timeout;
- /* The version to try is either specified or 0
- In case it is 0 we tell the caller what we tried */
- if (!*nfs_mount_vers)
- *nfs_mount_vers = find_kernel_nfs_mount_version();
- nfs_mount_version = *nfs_mount_vers;
+ nfs_mount_version = find_kernel_nfs_mount_version();
if (strlen(spec) >= sizeof(hostdir)) {
fprintf(stderr, _("mount: "