summaryrefslogtreecommitdiff
path: root/sbin/ipsecctl/ipsecctl.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-12 06:57:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-04-12 06:57:37 +0000
commitf1351d7f6fc197bd0ad66d1b8cbeab417ed503ae (patch)
tree66221cffecc221789002518bfd15e0a2466d7221 /sbin/ipsecctl/ipsecctl.c
parent2e817a743d44864d946e0cee1f4296aec3397d77 (diff)
help option useless; any unused option does that
Diffstat (limited to 'sbin/ipsecctl/ipsecctl.c')
-rw-r--r--sbin/ipsecctl/ipsecctl.c8
1 files changed, 3 insertions, 5 deletions
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 */