From d759ac366ab4eaa6e036f61ee4c9de10eec2a785 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 1 Aug 2011 13:33:04 +0200 Subject: mount: fix compiler warnings [-Wsign-compare -Wunused-parameter] Signed-off-by: Karel Zak --- mount/mount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mount/mount.c') diff --git a/mount/mount.c b/mount/mount.c index 5278253bf..5066abc44 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -760,7 +760,7 @@ check_special_mountprog(const char *spec, const char *node, const char *type, in res = snprintf(mountprog, sizeof(mountprog), "%s/mount.%s", path, type); path = strtok(NULL, ":"); - if (res >= sizeof(mountprog) || res < 0) + if (res < 0 || (size_t) res >= sizeof(mountprog)) continue; res = stat(mountprog, &statbuf); @@ -1335,7 +1335,7 @@ loop_check(const char **spec, const char **type, int *flags, #ifdef HAVE_LIBMOUNT_MOUNT static void verbose_mount_info(const char *spec, const char *node, const char *type, - const char *opts, int flags) + const char *opts) { struct my_mntent mnt; @@ -1674,7 +1674,7 @@ try_mount_one (const char *spec0, const char *node0, const char *types0, #ifdef HAVE_LIBMOUNT_MOUNT update_mtab_entry(flags); if (verbose) - verbose_mount_info(loop ? loopfile : spec, node, tp, mo, flags); + verbose_mount_info(loop ? loopfile : spec, node, tp, mo); #else if (!(mounttype & MS_PROPAGATION)) update_mtab_entry(loop ? loopfile : spec, -- cgit v1.2.3-55-g7522