diff options
author | Karel Zak | 2011-08-01 13:33:04 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-01 13:33:04 +0200 |
commit | d759ac366ab4eaa6e036f61ee4c9de10eec2a785 (patch) | |
tree | 2647e51a4a0d0d56f50df104ccc4170a8dff81e4 /mount/mount.c | |
parent | ionice: fix compiler warnings [-Wsign-compare] (diff) | |
download | kernel-qcow2-util-linux-d759ac366ab4eaa6e036f61ee4c9de10eec2a785.tar.gz kernel-qcow2-util-linux-d759ac366ab4eaa6e036f61ee4c9de10eec2a785.tar.xz kernel-qcow2-util-linux-d759ac366ab4eaa6e036f61ee4c9de10eec2a785.zip |
mount: fix compiler warnings [-Wsign-compare -Wunused-parameter]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/mount.c')
-rw-r--r-- | mount/mount.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |