diff options
author | yasuoka <yasuoka@openbsd.org> | 2015-08-25 01:21:57 +0000 |
---|---|---|
committer | yasuoka <yasuoka@openbsd.org> | 2015-08-25 01:21:57 +0000 |
commit | de90af90e675f0178796656a1d89a0cce020b925 (patch) | |
tree | f08c37e75cbb391e530980803756dbc051cd9b5f /usr.sbin/radiusctl | |
parent | Remove -h command line option from radiusd(8) to make it better style. (diff) | |
download | wireguard-openbsd-de90af90e675f0178796656a1d89a0cce020b925.tar.xz wireguard-openbsd-de90af90e675f0178796656a1d89a0cce020b925.zip |
Remove references to the -h command line option which was removed.
Also use `return' instead of exit(3) in main().
Patch from Michael Reed
ok jmc
Diffstat (limited to 'usr.sbin/radiusctl')
-rw-r--r-- | usr.sbin/radiusctl/radiusctl.8 | 5 | ||||
-rw-r--r-- | usr.sbin/radiusctl/radiusctl.c | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/usr.sbin/radiusctl/radiusctl.8 b/usr.sbin/radiusctl/radiusctl.8 index 550c2d4a040..02595580692 100644 --- a/usr.sbin/radiusctl/radiusctl.8 +++ b/usr.sbin/radiusctl/radiusctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: radiusctl.8,v 1.2 2015/08/03 07:45:05 jmc Exp $ +.\" $OpenBSD: radiusctl.8,v 1.3 2015/08/25 01:21:57 yasuoka Exp $ .\" .\" Copyright (c) YASUOKA Masahiko <yasuoka@yasuoka.net> .\" @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" -.Dd $Mdocdate: August 3 2015 $ +.Dd $Mdocdate: August 25 2015 $ .Dt RADIUSCTL 8 .Os .Sh NAME @@ -23,7 +23,6 @@ .Nd control the RADIUS protocol daemon .Sh SYNOPSIS .Nm -.Op Fl h .Ar command .Op Ar argument ... .Sh DESCRIPTION diff --git a/usr.sbin/radiusctl/radiusctl.c b/usr.sbin/radiusctl/radiusctl.c index aaf805e1b41..2591e77158e 100644 --- a/usr.sbin/radiusctl/radiusctl.c +++ b/usr.sbin/radiusctl/radiusctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusctl.c,v 1.3 2015/08/03 07:49:05 jmc Exp $ */ +/* $OpenBSD: radiusctl.c,v 1.4 2015/08/25 01:21:57 yasuoka Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net> * @@ -46,7 +46,7 @@ usage(void) { extern char *__progname; - fprintf(stderr, "usage: %s [-h] command [argument ...]\n", __progname); + fprintf(stderr, "usage: %s command [argument ...]\n", __progname); } int @@ -59,13 +59,13 @@ main(int argc, char *argv[]) switch (ch) { default: usage(); - exit(EX_USAGE); + return (EX_USAGE); } argc -= optind; argv += optind; if ((result = parse(argc, argv)) == NULL) - exit(EXIT_FAILURE); + return (EXIT_FAILURE); switch (result->action) { case NONE: @@ -75,7 +75,7 @@ main(int argc, char *argv[]) break; } - exit(EXIT_SUCCESS); + return (EXIT_SUCCESS); } static void |