diff options
author | 2001-03-14 21:21:31 +0000 | |
---|---|---|
committer | 2001-03-14 21:21:31 +0000 | |
commit | 063f623d4b2c111383e920adad36f1eafdc3d199 (patch) | |
tree | edc527c474c7a2d77c8a6672bc8069f2e84f6948 | |
parent | Make these compile again... (diff) | |
download | wireguard-openbsd-063f623d4b2c111383e920adad36f1eafdc3d199.tar.xz wireguard-openbsd-063f623d4b2c111383e920adad36f1eafdc3d199.zip |
Correct getopt usage in sample code; fixes PR/1729.
-rw-r--r-- | share/man/man9/style.9 | 4 |
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; |