From a8771c04817f47dcb44b34356cf81faae80110b8 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 23 Feb 2002 19:54:30 +0000 Subject: deraadt@ objects to the caveat remark, so remove it. --- lib/libc/stdlib/getopt.3 | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'lib/libc') 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 -- cgit v1.2.3