diff options
author | Warner Losh <imp@FreeBSD.org> | 2006-05-23 16:57:47 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2006-05-23 16:57:47 +0000 |
commit | 649482853c67d7fc1b8e28132fd6a7f93d31e364 (patch) | |
tree | 98a0893de992d9607b7e5c6b20aeaab1abfbd0ac /sbin/dhclient | |
parent | f2c48228fed06514cc75d33c9ad4c0ce81632d1e (diff) | |
download | src-649482853c67d7fc1b8e28132fd6a7f93d31e364.tar.gz src-649482853c67d7fc1b8e28132fd6a7f93d31e364.zip |
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.
Notes
Notes:
svn path=/head/; revision=158856
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/dhclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c index 9c691f89bb47..05f99c81c430 100644 --- a/sbin/dhclient/dhclient.c +++ b/sbin/dhclient/dhclient.c @@ -301,7 +301,7 @@ main(int argc, char *argv[]) openlog(__progname, LOG_PID | LOG_NDELAY, DHCPD_LOG_FACILITY); 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) { case 'b': immediate_daemon = 1; @@ -437,7 +437,7 @@ usage(void) { extern char *__progname; - fprintf(stderr, "usage: %s [-dqu] ", __progname); + fprintf(stderr, "usage: %s [-bdqu] ", __progname); fprintf(stderr, "[-c conffile] [-l leasefile] interface\n"); exit(1); } |