]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Change (argc < 6 || argc > 7) to (argc != 6 && argc != 7) 535/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Thu, 17 Nov 2022 15:12:26 +0000 (10:12 -0500)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Fri, 2 Dec 2022 13:50:40 +0000 (08:50 -0500)
They both do the same thing, but the latter is more clear.

12 files changed:
backend/lpd.c
backend/socket.c
backend/usb.c
filter/commandtops.c
filter/gziptoany.c
filter/pstops.c
filter/rastertoepson.c
filter/rastertohp.c
filter/rastertolabel.c
filter/rastertopwg.c
monitor/bcp.c
monitor/tbcp.c

index af68c958dbc0d717da0e0f5e37f138217e801e33..26e84171bdf48a3ffe9ee790be0d23bfc49660c4 100644 (file)
@@ -165,7 +165,7 @@ main(int  argc,                             /* I - Number of command-line arguments (6 or 7) */
            _cupsLangString(cupsLangDefault(), _("LPD/LPR Host or Printer")));
     return (CUPS_BACKEND_OK);
   }
-  else if (argc < 6 || argc > 7)
+  else if (argc != 6 && argc != 7)
   {
     _cupsLangPrintf(stderr,
                     _("Usage: %s job-id user title copies options [file]"),
index 68379e95b7b47639561c5637205718813ff2e1bc..05ee1925c0ecf1d2345ea656055e74b68d7f7758 100644 (file)
@@ -113,7 +113,7 @@ main(int  argc,                             /* I - Number of command-line arguments (6 or 7) */
            _cupsLangString(cupsLangDefault(), _("AppSocket/HP JetDirect")));
     return (CUPS_BACKEND_OK);
   }
-  else if (argc < 6 || argc > 7)
+  else if (argc != 6 && argc != 7)
   {
     _cupsLangPrintf(stderr,
                     _("Usage: %s job-id user title copies options [file]"),
index e1b2c03dc9af22f27e0013d779b4728e1a2468b3..a78bb3ee515e386c727382e1f78a72b41398232e 100644 (file)
@@ -164,7 +164,7 @@ main(int  argc,                             /* I - Number of command-line arguments (6 or 7) */
     list_devices();
     return (CUPS_BACKEND_OK);
   }
-  else if (argc < 6 || argc > 7)
+  else if (argc != 6 && argc != 7)
   {
     _cupsLangPrintf(stderr,
                     _("Usage: %s job-id user title copies options [file]"),
index 3edcc6a0c314e10dfdef84834a158e7850416e3e..829fc95561d05fe282723990198adbcf5fc121eb 100644 (file)
@@ -46,7 +46,7 @@ main(int  argc,                               /* I - Number of command-line arguments */
   * Check for valid arguments...
   */
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
    /*
     * We don't have the correct number of arguments; write an error message
index c2c8bc00d3dc938d5b3b38aec78f9f6203eb2a8c..78b7ebbd2d33b9d2c4c903a671408e4ae1f5964d 100644 (file)
@@ -34,7 +34,7 @@ main(int  argc,                               /* I - Number of command-line arguments */
   * Check command-line...
   */
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
     _cupsLangPrintf(stderr,
                     _("Usage: %s job-id user title copies options [file]"),
index d251abb0e78f74820049ef3d9698b96d8f8c1024..5b7aeb5cd7d3bc66a6b6e893299a8c95e0b9c234 100644 (file)
@@ -217,7 +217,7 @@ main(int  argc,                             /* I - Number of command-line args */
   * Check command-line...
   */
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
     _cupsLangPrintf(stderr,
                     _("Usage: %s job-id user title copies options [file]"),
index be3bd5e0e16db95845a945f78313b49592390637..c815691dc71e247b1a47025005b9c0fc167a4265 100644 (file)
@@ -988,7 +988,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
   * Check command-line...
   */
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
    /*
     * We don't have the correct number of arguments; write an error message
index 31ee0c4c9891a0cee34e47cbbf6494286bfc37d6..dd042167f8491151b3ee229a40a6a209195c7f6e 100644 (file)
@@ -657,7 +657,7 @@ main(int  argc,                             /* I - Number of command-line arguments */
   * Check command-line...
   */
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
    /*
     * We don't have the correct number of arguments; write an error message
index 73ac4d76eb9c8ebaedb0e8dc78280ed9274f8785..a8c1b0b1b0e27984d80125228ce29c70547ff28b 100644 (file)
@@ -1110,7 +1110,7 @@ main(int  argc,                           /* I - Number of command-line arguments */
   * Check command-line...
   */
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
    /*
     * We don't have the correct number of arguments; write an error message
index d56cecda15dc1bfb8eaefdf055ba3c9090891664..6e0ccf2312d828e662f6336a3e06b75ec8af6a78 100644 (file)
@@ -56,7 +56,7 @@ main(int  argc,                               /* I - Number of command-line args */
   const char           *val;           /* Option value */
 
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
     puts("Usage: rastertopwg job user title copies options [filename]");
     return (1);
index 42c095ad1289bf4da3a5411f69b119b33e3bcebe..26d4a45c7a0bf0779d14d00395cdf7c78784c1b3 100644 (file)
@@ -42,7 +42,7 @@ main(int  argc,                               /* I - Number of command-line args */
   * Check command-line...
   */
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
     _cupsLangPrintf(stderr,
                     _("Usage: %s job-id user title copies options [file]"),
index 20c5dcfb9c2b7f9e136af050b0d1b4df6764df96..c36a812cda6c3d3bd9bff331a0c9fcbb5eed291e 100644 (file)
@@ -41,7 +41,7 @@ main(int  argc,                               /* I - Number of command-line args */
   * Check command-line...
   */
 
-  if (argc < 6 || argc > 7)
+  if (argc != 6 && argc != 7)
   {
     _cupsLangPrintf(stderr,
                     _("Usage: %s job-id user title copies options [file]"),