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/lomount.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/lomount.c')
-rw-r--r-- | mount/lomount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mount/lomount.c b/mount/lomount.c index 84dfb1275..ab542e27a 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -52,7 +52,8 @@ loop_info64_to_old(const struct loop_info64 *info64, struct loop_info *info) if (info->lo_device != info64->lo_device || info->lo_rdevice != info64->lo_rdevice || info->lo_inode != info64->lo_inode || - info->lo_offset != info64->lo_offset) + info->lo_offset < 0 || + (uint64_t) info->lo_offset != info64->lo_offset) return -EOVERFLOW; return 0; |