Remove 'n' from the getopt string. There's no -n option that is
parsed, so it winds up at usage anyway. Add 'b' to the usage summary. Noticed by Ben Mesander.
This commit is contained in:
parent
f2c48228fe
commit
649482853c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158856
@ -301,7 +301,7 @@ main(int argc, char *argv[])
|
|||||||
openlog(__progname, LOG_PID | LOG_NDELAY, DHCPD_LOG_FACILITY);
|
openlog(__progname, LOG_PID | LOG_NDELAY, DHCPD_LOG_FACILITY);
|
||||||
setlogmask(LOG_UPTO(LOG_INFO));
|
setlogmask(LOG_UPTO(LOG_INFO));
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "bc:dl:nqu")) != -1)
|
while ((ch = getopt(argc, argv, "bc:dl:qu")) != -1)
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'b':
|
case 'b':
|
||||||
immediate_daemon = 1;
|
immediate_daemon = 1;
|
||||||
@ -437,7 +437,7 @@ usage(void)
|
|||||||
{
|
{
|
||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
|
|
||||||
fprintf(stderr, "usage: %s [-dqu] ", __progname);
|
fprintf(stderr, "usage: %s [-bdqu] ", __progname);
|
||||||
fprintf(stderr, "[-c conffile] [-l leasefile] interface\n");
|
fprintf(stderr, "[-c conffile] [-l leasefile] interface\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user