summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-08-19 22:29:53 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-08-19 22:29:53 +0000
commitc9672a7e6b60ec6e4784887ffd1c60fb6ce368eb (patch)
tree3b172c0d65794d43c255d855f335721444f46269 /lib/libc
parentcff834a92c1531d048b2a5647a0f8b4ac6d9876d (diff)
Suggest better types in examples; from NetBSD
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/getopt.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 083849f42c7..4acbe696067 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: getopt.3,v 1.16 2002/02/23 19:54:29 miod Exp $
+.\" $OpenBSD: getopt.3,v 1.17 2002/08/19 22:29:52 miod Exp $
.\"
.Dd April 19, 1994
.Dt GETOPT 3
@@ -236,7 +236,7 @@ It is provided for backward compatibility
.Em only .
The following code fragment works in most cases.
.Bd -literal -offset indent
-int length;
+long length;
char *p;
while ((c = getopt(argc, argv, "0123456789")) != -1) {