summaryrefslogtreecommitdiffstats
path: root/sys-utils/tunelp.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-01 13:14:21 +0200
committerKarel Zak2011-08-01 13:14:21 +0200
commit1599e6770ce65b76a0371d9ffe704d15f8ab6d1d (patch)
treeac23b565324c94d8eb4f2840ecdf00fe03f79a18 /sys-utils/tunelp.c
parentcytune: fix compiler warnings [-Wsign-compare] (diff)
downloadkernel-qcow2-util-linux-1599e6770ce65b76a0371d9ffe704d15f8ab6d1d.tar.gz
kernel-qcow2-util-linux-1599e6770ce65b76a0371d9ffe704d15f8ab6d1d.tar.xz
kernel-qcow2-util-linux-1599e6770ce65b76a0371d9ffe704d15f8ab6d1d.zip
tunelp: fix compiler warnings [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/tunelp.c')
-rw-r--r--sys-utils/tunelp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c
index 0f22fd8c6..f1220ef4d 100644
--- a/sys-utils/tunelp.c
+++ b/sys-utils/tunelp.c
@@ -250,7 +250,7 @@ main (int argc, char ** argv) {
if (retval < 0)
perror(_("LPGETSTATUS error"));
else {
- if (status == 0xdeadbeef) /* a few 1.1.7x kernels will do this */
+ if (status == (int) 0xdeadbeef) /* a few 1.1.7x kernels will do this */
status = retval;
printf(_("%s status is %d"), filename, status);
if (!(status & LP_PBUSY)) printf(_(", busy"));
@@ -277,7 +277,7 @@ main (int argc, char ** argv) {
perror(_("LPGETIRQ error"));
exit(4);
}
- if (irq == 0xdeadbeef) /* up to 1.1.77 will do this */
+ if (irq == (int) 0xdeadbeef) /* up to 1.1.77 will do this */
irq = retval;
if (irq)
printf(_("%s using IRQ %d\n"), filename, irq);