use if instead of switch and avoid a warning

This commit is contained in:
Christian Kruse
2014-01-22 15:12:29 +01:00
parent de58eff7c1
commit 0fdcce0477

View File

@@ -268,11 +268,8 @@ main(int argc, char **argv)
}
}
switch (optind < argc)
if (optind < argc)
{
case 0:
break;
default:
log_err(_("%s: too many command-line arguments (first extra is \"%s\")\n"),
progname, argv[optind]);
usage();