Flag poolnodecommand() (ippool -a and ippool -r) command line syntax

errors.
This commit is contained in:
Cy Schubert 2017-06-20 12:31:58 +00:00
parent 8cbc8d3dd1
commit 49742409a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=320143

View File

@ -210,8 +210,14 @@ poolnodecommand(remove, 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 (argv[optind] != NULL && ipset == 0) {
if (setnodeaddr(type, role, ptr, argv[optind]) == 0)
ipset = 1;