svn commit: r229329 - stable/9/lib/libc/stdlib
Glen Barber
gjb at FreeBSD.org
Mon Jan 2 22:25:22 UTC 2012
Author: gjb (doc committer)
Date: Mon Jan 2 22:25:21 2012
New Revision: 229329
URL: http://svn.freebsd.org/changeset/base/229329
Log:
MFC r228885:
r228885:
- Add missing opening and closing brackets in getopt_long.3 and
getsubopt.3 to make the examples reflect reality more closely.
Modified:
stable/9/lib/libc/stdlib/getopt_long.3
stable/9/lib/libc/stdlib/getsubopt.3
Directory Properties:
stable/9/lib/libc/ (props changed)
Modified: stable/9/lib/libc/stdlib/getopt_long.3
==============================================================================
--- stable/9/lib/libc/stdlib/getopt_long.3 Mon Jan 2 22:23:26 2012 (r229328)
+++ stable/9/lib/libc/stdlib/getopt_long.3 Mon Jan 2 22:25:21 2012 (r229329)
@@ -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
break;
default:
usage();
+ }
}
argc -= optind;
argv += optind;
Modified: stable/9/lib/libc/stdlib/getsubopt.3
==============================================================================
--- stable/9/lib/libc/stdlib/getsubopt.3 Mon Jan 2 22:23:26 2012 (r229328)
+++ stable/9/lib/libc/stdlib/getsubopt.3 Mon Jan 2 22:25:21 2012 (r229329)
@@ -28,7 +28,7 @@
.\" @(#)getsubopt.3 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd June 9, 1993
+.Dd December 25, 2011
.Dt GETSUBOPT 3
.Os
.Sh NAME
@@ -131,9 +131,11 @@ while ((ch = getopt(argc, argv, "ab:"))
else
error("missing sub option");
break;
+ }
}
break;
}
+}
.Ed
.Sh SEE ALSO
.Xr getopt 3 ,
More information about the svn-src-stable-9
mailing list