]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tunelp: fix compiler warnings [-Wsign-compare]
authorKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 11:14:21 +0000 (13:14 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 11:14:21 +0000 (13:14 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/tunelp.c

index 0f22fd8c623bc85262bd4d235e14ec0783055be5..f1220ef4d5cd170fb49476de4cc24b388f4b5f4a 100644 (file)
@@ -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);