summaryrefslogtreecommitdiff
path: root/lib/libc/string/memcmp.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/string/memcmp.c
parentf6ae64deff8e64a1acb3e1536bf6b6d06f7bffb9 (diff)
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
Diffstat (limited to 'lib/libc/string/memcmp.c')
-rw-r--r--lib/libc/string/memcmp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libc/string/memcmp.c b/lib/libc/string/memcmp.c
index b9640fe2833..9e70bd17289 100644
--- a/lib/libc/string/memcmp.c
+++ b/lib/libc/string/memcmp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: memcmp.c,v 1.10 1999/09/16 11:45:40 lukem Exp $ */
+/* $NetBSD: memcmp.c,v 1.11 1999/09/20 04:39:45 lukem Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)memcmp.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: memcmp.c,v 1.10 1999/09/16 11:45:40 lukem Exp $");
+__RCSID("$NetBSD: memcmp.c,v 1.11 1999/09/20 04:39:45 lukem Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -63,10 +63,6 @@ memcmp(s1, s2, n)
{
_DIAGASSERT(s1 != 0);
_DIAGASSERT(s2 != 0);
-#ifdef _DIAGNOSTIC
- if (s1 == 0 || s2 == 0)
- return (0);
-#endif
if (n != 0) {
const unsigned char *p1 = s1, *p2 = s2;