diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2015-08-25 01:21:58 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2015-08-25 01:21:58 +0000 |
commit | d32ccf0d6dac84721a7eb7c6a3d8dbc829ef7f03 (patch) | |
tree | bf27af519d1b90f977563360fddf16f258f2b3fd /usr.sbin | |
parent | 3d420a171c67288f36006396973062226d3408ba (diff) |
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')
-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 |