summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/radiusctl/radiusctl.85
-rw-r--r--usr.sbin/radiusctl/radiusctl.c10
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