summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt_long.3
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2011-12-26 03:14:37 +0000
committergjb <gjb@FreeBSD.org>2011-12-26 03:14:37 +0000
commit263706572b8dee06f63b68e467a20c8c3db31717 (patch)
treea1129ca05bc5db936a19e927de35a04570f75554 /lib/libc/stdlib/getopt_long.3
parent99a863e131cb6ba4ac6af5fca57889c3af33000d (diff)
downloadFreeBSD-src-263706572b8dee06f63b68e467a20c8c3db31717.zip
FreeBSD-src-263706572b8dee06f63b68e467a20c8c3db31717.tar.gz
Add missing opening and closing brackets in getopt_long.3 and getsubopt.3
to make the examples reflect reality more closely. MFC after: 1 week X-MFC-After: 9.0-RELEASE
Diffstat (limited to 'lib/libc/stdlib/getopt_long.3')
-rw-r--r--lib/libc/stdlib/getopt_long.35
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getopt_long.3 b/lib/libc/stdlib/getopt_long.3
index 72f6534..06eadca 100644
--- a/lib/libc/stdlib/getopt_long.3
+++ b/lib/libc/stdlib/getopt_long.3
@@ -31,7 +31,7 @@
.\" @(#)getopt.3 8.5 (Berkeley) 4/27/95
.\" $FreeBSD$
.\"
-.Dd April 1, 2000
+.Dd December 25, 2011
.Dt GETOPT_LONG 3
.Os
.Sh NAME
@@ -239,7 +239,7 @@ static struct option longopts[] = {
};
bflag = 0;
-while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1)
+while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1) {
switch (ch) {
case 'b':
bflag = 1;
@@ -256,6 +256,7 @@ while ((ch = getopt_long(argc, argv, "bf:", longopts, NULL)) != -1)
break;
default:
usage();
+ }
}
argc -= optind;
argv += optind;
OpenPOWER on IntegriCloud