summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2002-02-23 19:54:29 +0000
committermiod <miod@openbsd.org>2002-02-23 19:54:29 +0000
commit37764bfe21207b5f2b74f8792571f044b6a09b7f (patch)
treedf9c062895f7ef3b9025cfef943bec70d9abf717
parentSlightly improve wording and punctuation. (diff)
downloadwireguard-openbsd-37764bfe21207b5f2b74f8792571f044b6a09b7f.tar.xz
wireguard-openbsd-37764bfe21207b5f2b74f8792571f044b6a09b7f.zip
deraadt@ objects to the caveat remark, so remove it.
-rw-r--r--lib/libc/stdlib/getopt.312
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 4f6fe9749bd..083849f42c7 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.15 2002/02/23 19:50:01 miod Exp $
+.\" $OpenBSD: getopt.3,v 1.16 2002/02/23 19:54:29 miod Exp $
.\"
.Dd April 19, 1994
.Dt GETOPT 3
@@ -192,16 +192,6 @@ The
.Fn getopt
function appeared in
.Bx 4.3 .
-.Sh CAVEATS
-Some software use the very bad practice of affecting the return value of
-.Fn getopt
-to a
-.Ft char
-variable.
-On platforms where
-.Ft char
-is unsigned by default, a comparison of this variable to \-1 to detect the
-end of the argument list will never succeed.
.Sh BUGS
The
.Fn getopt