diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-12 06:57:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-12 06:57:37 +0000 |
commit | f1351d7f6fc197bd0ad66d1b8cbeab417ed503ae (patch) | |
tree | 66221cffecc221789002518bfd15e0a2466d7221 /sbin | |
parent | 2e817a743d44864d946e0cee1f4296aec3397d77 (diff) |
help option useless; any unused option does that
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ipsecctl/ipsecctl.8 | 6 | ||||
-rw-r--r-- | sbin/ipsecctl/ipsecctl.c | 8 |
2 files changed, 5 insertions, 9 deletions
diff --git a/sbin/ipsecctl/ipsecctl.8 b/sbin/ipsecctl/ipsecctl.8 index 2fa48520860..a4a5b6c52c4 100644 --- a/sbin/ipsecctl/ipsecctl.8 +++ b/sbin/ipsecctl/ipsecctl.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ipsecctl.8,v 1.5 2005/04/06 14:11:21 hshoexer Exp $ +.\" $OpenBSD: ipsecctl.8,v 1.6 2005/04/12 06:57:36 deraadt Exp $ .\" .\" Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> .\" @@ -22,7 +22,7 @@ .Nd control flows for IPsec .Sh SYNOPSIS .Nm ipsecctl -.Op Fl Fhnsv +.Op Fl Fnsv .Op Fl f Ar file .Sh DESCRIPTION The @@ -44,8 +44,6 @@ option flushes the SPD. .It Fl f Ar file Load the rules contained in .Ar file . -.It Fl h -Help. .It Fl n Do not actually load rules, just parse them. .It Fl s diff --git a/sbin/ipsecctl/ipsecctl.c b/sbin/ipsecctl/ipsecctl.c index e8fbab5af79..41a2ec7019e 100644 --- a/sbin/ipsecctl/ipsecctl.c +++ b/sbin/ipsecctl/ipsecctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecctl.c,v 1.3 2005/04/05 07:14:00 jmc Exp $ */ +/* $OpenBSD: ipsecctl.c,v 1.4 2005/04/12 06:57:36 deraadt Exp $ */ /* * Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -347,7 +347,7 @@ usage(void) { extern char *__progname; - fprintf(stderr, "usage: %s [-Fhnsv] [-f file]\n", __progname); + fprintf(stderr, "usage: %s [-Fnsv] [-f file]\n", __progname); exit(1); } @@ -362,7 +362,7 @@ main(int argc, char *argv[]) if (argc < 2) usage(); - while ((ch = getopt(argc, argv, "f:Fhnvs")) != -1) { + while ((ch = getopt(argc, argv, "f:Fnvs")) != -1) { switch (ch) { case 'f': rulesopt = optarg; @@ -386,8 +386,6 @@ main(int argc, char *argv[]) opts |= IPSECCTL_OPT_SHOW; break; - case 'h': - /* FALLTHROUGH */ default: usage(); /* NOTREACHED */ |