From c91ed2eb6c14f791089b2e9318170b630681e361 Mon Sep 17 00:00:00 2001 From: Dima Dorfman Date: Mon, 18 Jun 2001 20:36:06 +0000 Subject: [PATCH] Correct getopt usage and a syntax error (period used instead of a semicolon). --- share/man/man9/style.9 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 6c2efc3bc95f..d6696ce46b4a 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -280,7 +280,7 @@ 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 - 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; @@ -343,7 +343,7 @@ Second level indents are four spaces. while (cnt < 20) z = a + really + long + statement + that + needs + two lines + gets + indented + four + spaces + - on + the + second + and + subsequent + lines. + on + the + second + and + subsequent + lines; .Ed .Pp Do not add whitespace at the end of a line, and only use tabs