Identify command line syntax errors in poolflush() (ippool -F).
This commit is contained in:
parent
a8f3fd8253
commit
0fc43621ce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=319820
@ -557,8 +557,14 @@ poolflush(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, "poolflush: opts = %#x\n", opts);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user