mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Identify poolstats() (ippool -s) command line syntax errors.
This commit is contained in:
parent
0fc43621ce
commit
d05afd2252
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue