summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getsubopt.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1999-09-20 04:38:56 +0000
committerlukem <lukem@NetBSD.org>1999-09-20 04:38:56 +0000
commitd896261208b4610b0c4e86ea95caad3cdc86a4ac (patch)
tree9a96db945c9ffba191e3aa4d741cf5d30fbd30f2 /lib/libc/stdlib/getsubopt.c
parentf6ae64deff8e64a1acb3e1536bf6b6d06f7bffb9 (diff)
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
Diffstat (limited to 'lib/libc/stdlib/getsubopt.c')
-rw-r--r--lib/libc/stdlib/getsubopt.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libc/stdlib/getsubopt.c b/lib/libc/stdlib/getsubopt.c
index 5abe50a15fa..17c1a5c3837 100644
--- a/lib/libc/stdlib/getsubopt.c
+++ b/lib/libc/stdlib/getsubopt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: getsubopt.c,v 1.5 1999/09/16 11:45:34 lukem Exp $ */
+/* $NetBSD: getsubopt.c,v 1.6 1999/09/20 04:39:37 lukem Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)getsubopt.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: getsubopt.c,v 1.5 1999/09/16 11:45:34 lukem Exp $");
+__RCSID("$NetBSD: getsubopt.c,v 1.6 1999/09/20 04:39:37 lukem Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -66,10 +66,6 @@ getsubopt(optionp, tokens, valuep)
_DIAGASSERT(valuep != NULL);
_DIAGASSERT(tokens != NULL);
/* optionp is tested below */
-#ifdef _DIAGNOSTIC
- if (valuep == NULL || tokens == NULL)
- return (-1);
-#endif
suboptarg = *valuep = NULL;