They both do the same thing, but the latter is more clear.
_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]"),
_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]"),
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]"),
* 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
* Check command-line...
*/
- if (argc < 6 || argc > 7)
+ if (argc != 6 && argc != 7)
{
_cupsLangPrintf(stderr,
_("Usage: %s job-id user title copies options [file]"),
* Check command-line...
*/
- if (argc < 6 || argc > 7)
+ if (argc != 6 && argc != 7)
{
_cupsLangPrintf(stderr,
_("Usage: %s job-id user title copies options [file]"),
* 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
* 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
* 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
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);
* Check command-line...
*/
- if (argc < 6 || argc > 7)
+ if (argc != 6 && argc != 7)
{
_cupsLangPrintf(stderr,
_("Usage: %s job-id user title copies options [file]"),
* Check command-line...
*/
- if (argc < 6 || argc > 7)
+ if (argc != 6 && argc != 7)
{
_cupsLangPrintf(stderr,
_("Usage: %s job-id user title copies options [file]"),