diff options
| author | lukem <lukem@NetBSD.org> | 1999-09-20 04:38:56 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 1999-09-20 04:38:56 +0000 |
| commit | d896261208b4610b0c4e86ea95caad3cdc86a4ac (patch) | |
| tree | 9a96db945c9ffba191e3aa4d741cf5d30fbd30f2 /lib/libc/string/strncmp.c | |
| parent | f6ae64deff8e64a1acb3e1536bf6b6d06f7bffb9 (diff) | |
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
Diffstat (limited to 'lib/libc/string/strncmp.c')
| -rw-r--r-- | lib/libc/string/strncmp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libc/string/strncmp.c b/lib/libc/string/strncmp.c index 38e8bf4a15f..b32297dda12 100644 --- a/lib/libc/string/strncmp.c +++ b/lib/libc/string/strncmp.c @@ -1,4 +1,4 @@ -/* $NetBSD: strncmp.c,v 1.11 1999/09/16 11:45:42 lukem Exp $ */ +/* $NetBSD: strncmp.c,v 1.12 1999/09/20 04:39:48 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)strncmp.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: strncmp.c,v 1.11 1999/09/16 11:45:42 lukem Exp $"); +__RCSID("$NetBSD: strncmp.c,v 1.12 1999/09/20 04:39:48 lukem Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -59,10 +59,6 @@ strncmp(s1, s2, n) _DIAGASSERT(s1 != NULL); _DIAGASSERT(s2 != NULL); -#ifdef _DIAGNOSTIC - if (s1 == NULL || s2 == NULL) - return (0); -#endif if (n == 0) return (0); |
