X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fmount.c;h=a668cd97c673f0aff792aaec3e5e99e415eec8d7;hb=b46dc42505da799a05a3a5e8f004b308f6b9eef7;hp=06e2804f3cff43580a96888fab32f59290b73964;hpb=8dfb9661a132a206c10067f40e274cf797dab1b2;p=nfs-utils.git diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 06e2804..a668cd9 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -156,7 +156,7 @@ static void parse_opts(const char *options, int *flags, char **extra_opts); */ static void discover_nfs_mount_data_version(void) { - int kernel_version = linux_version_code(); + unsigned int kernel_version = linux_version_code(); if (kernel_version) { if (kernel_version < MAKE_VERSION(2, 1, 32)) @@ -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);