Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib fix sample code. from openbsd.



details:   https://anonhg.NetBSD.org/src/rev/7c532517a9df
branches:  trunk
changeset: 535118:7c532517a9df
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Aug 10 17:25:01 2002 +0000

description:
fix sample code.  from openbsd.

diffstat:

 lib/libc/stdlib/getopt.3 |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a527c79b49f1 -r 7c532517a9df lib/libc/stdlib/getopt.3
--- a/lib/libc/stdlib/getopt.3  Sat Aug 10 17:14:50 2002 +0000
+++ b/lib/libc/stdlib/getopt.3  Sat Aug 10 17:25:01 2002 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: getopt.3,v 1.22 2002/02/07 09:24:06 ross Exp $
+.\"    $NetBSD: getopt.3,v 1.23 2002/08/10 17:25:01 yamt Exp $
 .\"
 .\" Copyright (c) 1988, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -33,7 +33,7 @@
 .\"
 .\"     @(#)getopt.3   8.5 (Berkeley) 4/27/95
 .\"
-.Dd April 27, 1995
+.Dd August 11, 2002
 .Dt GETOPT 3
 .Os
 .Sh NAME
@@ -248,7 +248,7 @@
 int length;
 char *p;
 
-while ((c = getopt(argc, argv, "0123456789")) != -1)
+while ((c = getopt(argc, argv, "0123456789")) != -1) {
        switch (c) {
        case '0': case '1': case '2': case '3': case '4':
        case '5': case '6': case '7': case '8': case '9':



Home | Main Index | Thread Index | Old Index