Correct getopt usage and a syntax error (period used instead of a semicolon).

This commit is contained in:
Dima Dorfman 2001-06-18 20:36:06 +00:00
parent 37336173d3
commit c91ed2eb6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78432

View File

@ -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