diff options
| author | martin <martin@NetBSD.org> | 2018-02-12 11:14:15 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2018-02-12 11:14:15 +0000 |
| commit | fc073e8031e4b46be3df8abcbc16ff161526e3a2 (patch) | |
| tree | 8b8ec37a5aa9569b3664cacf03811ddca1457947 /common/lib/libc/string | |
| parent | 660b3b8223348528ddf3af30f718361a67001a27 (diff) | |
Complete previous by complteley removing the _DIAGASSERT from memmove -
the accidental left over from previous fired on all legitimate calls
and caused PR bin/52986 and PR lib/52987.
Diffstat (limited to 'common/lib/libc/string')
| -rw-r--r-- | common/lib/libc/string/bcopy.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/common/lib/libc/string/bcopy.c b/common/lib/libc/string/bcopy.c index dfbcacf5fbe..9946464031b 100644 --- a/common/lib/libc/string/bcopy.c +++ b/common/lib/libc/string/bcopy.c @@ -1,4 +1,4 @@ -/* $NetBSD: bcopy.c,v 1.12 2018/02/04 20:22:17 mrg Exp $ */ +/* $NetBSD: bcopy.c,v 1.13 2018/02/12 11:14:15 martin Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)bcopy.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: bcopy.c,v 1.12 2018/02/04 20:22:17 mrg Exp $"); +__RCSID("$NetBSD: bcopy.c,v 1.13 2018/02/12 11:14:15 martin Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -88,10 +88,6 @@ bcopy(const void *src0, void *dst0, size_t length) size_t t; unsigned long u; -#if !defined(_KERNEL) - _DIAGASSERT(length == 0); -#endif - if (length == 0 || dst == src) /* nothing to do */ goto done; |
