summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/getopt.3
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2002-08-19 22:29:52 +0000
committermiod <miod@openbsd.org>2002-08-19 22:29:52 +0000
commit8401aa7d37f0c4b5a8566a86dc820d27cf10bae8 (patch)
treeefecec45bf88703d5117732601d27bbfff382cc4 /lib/libc/stdlib/getopt.3
parentTypo (diff)
downloadwireguard-openbsd-8401aa7d37f0c4b5a8566a86dc820d27cf10bae8.tar.xz
wireguard-openbsd-8401aa7d37f0c4b5a8566a86dc820d27cf10bae8.zip
Suggest better types in examples; from NetBSD
Diffstat (limited to 'lib/libc/stdlib/getopt.3')
-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) {