]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - berkeley/lpq.c
Full sweep of all Clang warnings, plus some bug fixes for incorrect memcpy usage.
[thirdparty/cups.git] / berkeley / lpq.c
index 595fafdae56412bcf02a3894d9f5461daf5143c6..3238706866ab76b58269b8dc643e023b4c57df42 100644 (file)
@@ -3,7 +3,7 @@
  *
  * "lpq" command for CUPS.
  *
- * Copyright 2007-2013 by Apple Inc.
+ * Copyright 2007-2014 by Apple Inc.
  * Copyright 1997-2006 by Easy Software Products.
  *
  * These coded instructions, statements, and computer programs are the
  * Include necessary headers...
  */
 
-/*
- * Include necessary headers...
- */
-
 #include <cups/cups-private.h>
 
 
@@ -187,7 +183,6 @@ main(int  argc,                             /* I - Number of command-line arguments */
            httpClose(http);
 
            usage();
-           break;
       }
     }
     else if (isdigit(argv[i][0] & 255))
@@ -255,7 +250,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
     if (i && interval)
     {
       fflush(stdout);
-      sleep(interval);
+      sleep((unsigned)interval);
     }
     else
       break;