Flag loadpoolfile() (ippool -f) command line syntax errors.

This commit is contained in:
cy 2017-06-11 04:03:09 +00:00
parent 55eda8a54d
commit ececcb3d95

View File

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