~ubuntu-branches/ubuntu/trusty/util-linux/trusty-proposed

« back to all changes in this revision

Viewing changes to sys-utils/tunelp.c

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2011-11-03 15:38:23 UTC
  • mto: (4.5.5 sid) (1.6.4)
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: package-import@ubuntu.com-20111103153823-10sx16jprzxlhkqf
ImportĀ upstreamĀ versionĀ 2.20.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
      if (retval < 0)
251
251
        perror(_("LPGETSTATUS error"));
252
252
      else {
253
 
        if (status == 0xdeadbeef)       /* a few 1.1.7x kernels will do this */
 
253
        if (status == (int) 0xdeadbeef) /* a few 1.1.7x kernels will do this */
254
254
          status = retval;
255
255
        printf(_("%s status is %d"), filename, status);
256
256
        if (!(status & LP_PBUSY)) printf(_(", busy"));
277
277
      perror(_("LPGETIRQ error"));
278
278
      exit(4);
279
279
    }
280
 
    if (irq == 0xdeadbeef)              /* up to 1.1.77 will do this */
 
280
    if (irq == (int) 0xdeadbeef)                /* up to 1.1.77 will do this */
281
281
      irq = retval;
282
282
    if (irq)
283
283
      printf(_("%s using IRQ %d\n"), filename, irq);