From: Chuck Lever Date: Tue, 14 Jul 2009 20:50:00 +0000 (-0400) Subject: mount.nfs: Remove unused parameter in try_mount() X-Git-Tag: nfs-utils-1-2-1-rc2~9 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=d47f9baba71e92730e94d3361fa1098dc31b7627;p=nfs-utils.git mount.nfs: Remove unused parameter in try_mount() Address compiler warning: mount.c: At top level: mount.c:420: warning: unused parameter nomtab Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- diff --git a/utils/mount/mount.c b/utils/mount/mount.c index d531d64..a668cd9 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -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);