]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mount.nfs: Remove unused parameter in try_mount()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Jul 2009 20:50:00 +0000 (16:50 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 14 Jul 2009 20:50:00 +0000 (16:50 -0400)
Address compiler warning:

    mount.c: At top level:
    mount.c:420: warning: unused parameter nomtab

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/mount.c

index d531d649b20456f4843b66ea0ab9ec5f7a347490..a668cd97c673f0aff792aaec3e5e99e415eec8d7 100644 (file)
@@ -417,7 +417,7 @@ static int chk_mountpoint(char *mount_point)
 
 static int try_mount(char *spec, char *mount_point, int flags,
                        char *fs_type, char **extra_opts, char *mount_opts,
-                       int fake, int nomtab, int bg)
+                       int fake, int bg)
 {
        int ret;
 
@@ -582,7 +582,7 @@ int main(int argc, char *argv[])
        }
 
        mnt_err = try_mount(spec, mount_point, flags, fs_type, &extra_opts,
-                               mount_opts, fake, nomtab, FOREGROUND);
+                               mount_opts, fake, FOREGROUND);
        if (mnt_err == EX_BG) {
                printf(_("%s: backgrounding \"%s\"\n"),
                        progname, spec);
@@ -600,7 +600,7 @@ int main(int argc, char *argv[])
 
                mnt_err = try_mount(spec, mount_point, flags, fs_type,
                                        &extra_opts, mount_opts, fake,
-                                       nomtab, BACKGROUND);
+                                       BACKGROUND);
                if (verbose && mnt_err)
                        printf(_("%s: giving up \"%s\"\n"),
                                progname, spec);