diff options
author | Karel Zak | 2012-01-17 16:36:55 +0100 |
---|---|---|
committer | Karel Zak | 2012-01-17 16:36:55 +0100 |
commit | a3b421dfacc0c0ce76f4a917da6f3af5a5d9d694 (patch) | |
tree | a77647f1c4af4480b817ee1078d63afae7f285bd /sys-utils/losetup.c | |
parent | libmount: fix compiler warnings [-Wuninitialized -Wformat] (diff) | |
download | kernel-qcow2-util-linux-a3b421dfacc0c0ce76f4a917da6f3af5a5d9d694.tar.gz kernel-qcow2-util-linux-a3b421dfacc0c0ce76f4a917da6f3af5a5d9d694.tar.xz kernel-qcow2-util-linux-a3b421dfacc0c0ce76f4a917da6f3af5a5d9d694.zip |
losetup: fix compiler warnings [-Wpointer-sign -Wformat]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/losetup.c')
-rw-r--r-- | sys-utils/losetup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 895363b35..16ace6f96 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -39,7 +39,7 @@ static int printf_loopdev(struct loopdev_cxt *lc) dev_t dev = 0; ino_t ino = 0; char *fname = NULL; - int type; + uint32_t type; fname = loopcxt_get_backing_file(lc); if (!fname) @@ -66,7 +66,7 @@ static int printf_loopdev(struct loopdev_cxt *lc) } printf("%s: [%04d]:%" PRIu64 " (%s)", - loopcxt_get_device(lc), dev, ino, fname); + loopcxt_get_device(lc), (int) dev, ino, fname); if (loopcxt_get_offset(lc, &x) == 0 && x) printf(_(", offset %ju"), x); @@ -80,7 +80,7 @@ static int printf_loopdev(struct loopdev_cxt *lc) if ((!e || !*e) && type == 1) e = "XOR"; if (e && *e) - printf(_(", encryption %s (type %ju)"), e, type); + printf(_(", encryption %s (type %u)"), e, type); } printf("\n"); return 0; |