diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2015-08-25 01:13:00 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2015-08-25 01:13:00 +0000 |
commit | 3d420a171c67288f36006396973062226d3408ba (patch) | |
tree | 3f1c92c6f508160bb0d2be1879c43b7b9e393416 /usr.sbin | |
parent | 0cfa37a1f8ff875a6ce1589dae25dd8499a8e8de (diff) |
Remove -h command line option from radiusd(8) to make it better style.
Patch from Michael Reed
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/radiusd/radiusd.8 | 8 | ||||
-rw-r--r-- | usr.sbin/radiusd/radiusd.c | 8 |
2 files changed, 7 insertions, 9 deletions
diff --git a/usr.sbin/radiusd/radiusd.8 b/usr.sbin/radiusd/radiusd.8 index 360377f636d..67faaaa70c2 100644 --- a/usr.sbin/radiusd/radiusd.8 +++ b/usr.sbin/radiusd/radiusd.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: radiusd.8,v 1.5 2015/07/28 08:41:30 sobrado Exp $ +.\" $OpenBSD: radiusd.8,v 1.6 2015/08/25 01:12:59 yasuoka Exp $ .\" .\" Copyright (c) 2013 Internet Initiative Japan Inc. .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: July 28 2015 $ +.Dd $Mdocdate: August 25 2015 $ .Dt RADIUSD 8 .Os .Sh NAME @@ -22,7 +22,7 @@ .Nd Remote Authentication Dial In User Service (RADIUS) daemon .Sh SYNOPSIS .Nm radiusd -.Op Fl dhn +.Op Fl dn .Op Fl f Ar file .Sh DESCRIPTION The @@ -39,8 +39,6 @@ instead of and produce some additional debugging output. .It Fl f Ar file Specify an alternative configuration file. -.It Fl h -Display usage text and exit. .It Fl n Configtest mode. Only check the configuration file for validity. diff --git a/usr.sbin/radiusd/radiusd.c b/usr.sbin/radiusd/radiusd.c index 7bacbcd9cd4..72dd39a8046 100644 --- a/usr.sbin/radiusd/radiusd.c +++ b/usr.sbin/radiusd/radiusd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusd.c,v 1.6 2015/08/02 23:27:50 yasuoka Exp $ */ +/* $OpenBSD: radiusd.c,v 1.7 2015/08/25 01:12:59 yasuoka Exp $ */ /* * Copyright (c) 2013 Internet Initiative Japan Inc. @@ -94,7 +94,7 @@ usage(void) { extern char *__progname; - fprintf(stderr, "usage: %s [-dhn] [-f file]\n", __progname); + fprintf(stderr, "usage: %s [-dn] [-f file]\n", __progname); exit(EX_USAGE); } @@ -108,7 +108,7 @@ main(int argc, char *argv[]) bool noaction = false; struct passwd *pw; - while ((ch = getopt(argc, argv, "df:nh")) != -1) + while ((ch = getopt(argc, argv, "df:n")) != -1) switch (ch) { case 'd': debug++; @@ -122,7 +122,7 @@ main(int argc, char *argv[]) noaction = true; break; - case 'h': + default: usage(); /* NOTREACHED */ } |