Identify poolstats() (ippool -s) command line syntax errors.

This commit is contained in:
Cy Schubert 2017-06-11 04:00:26 +00:00
parent 0fc43621ce
commit d05afd2252
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319821

View File

@ -451,8 +451,14 @@ poolstats(argc, argv)
case 'v' :
opts |= OPT_VERBOSE;
break;
default :
usage(argv[0]);
break; /* keep compiler happy */
}
if (argc - 1 - optind > 0)
usage(argv[0]);
if (opts & OPT_DEBUG)
fprintf(stderr, "poolstats: opts = %#x\n", opts);