summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2002-08-19 22:29:52 +0000
committermiod <>2002-08-19 22:29:52 +0000
commit56e9c4a1b42447447b0a7dcd0adde13e3f9bca54 (patch)
treefe2fef01776afa822b012f8c81e70525a686a09f
parent9137f89fa4996b672549800231e364a3428e5426 (diff)
downloadopenbsd-56e9c4a1b42447447b0a7dcd0adde13e3f9bca54.tar.gz
openbsd-56e9c4a1b42447447b0a7dcd0adde13e3f9bca54.tar.bz2
openbsd-56e9c4a1b42447447b0a7dcd0adde13e3f9bca54.zip
Suggest better types in examples; from NetBSD
-rw-r--r--src/lib/libc/stdlib/getopt.34
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3
index 083849f42c..4acbe69606 100644
--- a/src/lib/libc/stdlib/getopt.3
+++ b/src/lib/libc/stdlib/getopt.3
@@ -29,7 +29,7 @@
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE. 30.\" SUCH DAMAGE.
31.\" 31.\"
32.\" $OpenBSD: getopt.3,v 1.16 2002/02/23 19:54:29 miod Exp $ 32.\" $OpenBSD: getopt.3,v 1.17 2002/08/19 22:29:52 miod Exp $
33.\" 33.\"
34.Dd April 19, 1994 34.Dd April 19, 1994
35.Dt GETOPT 3 35.Dt GETOPT 3
@@ -236,7 +236,7 @@ It is provided for backward compatibility
236.Em only . 236.Em only .
237The following code fragment works in most cases. 237The following code fragment works in most cases.
238.Bd -literal -offset indent 238.Bd -literal -offset indent
239int length; 239long length;
240char *p; 240char *p;
241 241
242while ((c = getopt(argc, argv, "0123456789")) != -1) { 242while ((c = getopt(argc, argv, "0123456789")) != -1) {