summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-03-14 21:21:32 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-03-14 21:21:32 +0000
commit7f75d36f2d4e7390de24714a432137483eff64b0 (patch)
tree0c90969c46f3d4bc980c443d1a01881a18eb0a86
parent4677912e5a448132145c87c5786f0c56bd3ed50e (diff)
Correct getopt usage in sample code; fixes PR/1729.
-rw-r--r--share/man/man9/style.94
1 files changed, 2 insertions, 2 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 0df20ddabd4..d79ebc1028d 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: style.9,v 1.14 2001/03/06 19:56:52 brad Exp $
+.\" $OpenBSD: style.9,v 1.15 2001/03/14 21:21:31 aaron Exp $
.\"
.Dd August 19, 1999
.Dt STYLE 9
@@ -264,7 +264,7 @@ Elements in a switch statement that cascade should have a FALLTHROUGH comment.
Numerical arguments should be checked for accuracy.
Code that cannot be reached should have a NOTREACHED comment,
.Bd -literal -offset 0i
- while ((ch = getopt(argc, argv, "abn")) != -1)
+ while ((ch = getopt(argc, argv, "abn:")) != -1)
switch (ch) { /* Indent the switch. */
case 'a': /* Don't indent the case. */
aflag = 1;