From: Karel Zak Date: Mon, 1 Aug 2011 11:14:21 +0000 (+0200) Subject: tunelp: fix compiler warnings [-Wsign-compare] X-Git-Tag: v2.20-rc2~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1599e6770ce65b76a0371d9ffe704d15f8ab6d1d;p=thirdparty%2Futil-linux.git tunelp: fix compiler warnings [-Wsign-compare] Signed-off-by: Karel Zak --- diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c index 0f22fd8c62..f1220ef4d5 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);