Flag loadpoolfile() (ippool -f) command line syntax errors.
This commit is contained in:
parent
55eda8a54d
commit
ececcb3d95
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user