summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2001-07-26 12:55:16 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2001-07-26 12:55:16 +0000
commit1c4e5f6cfeea3916415b68b04385906a115162a2 (patch)
tree7bfe617be7e5c239c4e57650df60c9a0a75f6cf2
parent18c0d13f42e79b4d3e7db8c3e4672d49a3fe86f7 (diff)
usage() with __progname according to style(9), typo in man page. both from mpech@.
-rw-r--r--sbin/pfctl/pfctl.84
-rw-r--r--sbin/pfctl/pfctl.c7
2 files changed, 7 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl.8 b/sbin/pfctl/pfctl.8
index 29773069386..64c75890e98 100644
--- a/sbin/pfctl/pfctl.8
+++ b/sbin/pfctl/pfctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pfctl.8,v 1.22 2001/07/20 18:07:11 mpech Exp $
+.\" $OpenBSD: pfctl.8,v 1.23 2001/07/26 12:55:15 dhartmei Exp $
.\"
.\" Copyright (c) 2001 Kjell Wooding. All rights reserved.
.\"
@@ -71,7 +71,7 @@ in the file
.Pp
The
.Nm
-utility provides several commands:
+utility provides several commands.
The options are as follows:
.Bl -tag -width Ds
.It Fl d
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 47ebdefa852..3787d2d6c76 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.29 2001/07/17 17:39:09 marc Exp $ */
+/* $OpenBSD: pfctl.c,v 1.30 2001/07/26 12:55:15 dhartmei Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -78,7 +78,10 @@ char *showopt;
void
usage()
{
- fprintf(stderr, "usage: pfctl [-dehnqv] [-F set] [-l interface] ");
+ extern char *__progname;
+
+ fprintf(stderr, "usage: %s [-dehnqv] [-F set] [-l interface] ",
+ __progname);
fprintf(stderr, "[-N file] [-R file] [-s set]\n");
exit(1);
}