summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-10-04 13:42:43 +0000
committerJim Meyering <jim@meyering.net>1996-10-04 13:42:43 +0000
commitb350b74916c0b67e3020b345b9064d962791490a (patch)
tree307a987e720f41a0ad4a13fff9195ff25bc85768 /lib
parent3400ffe3f22fa55d22be79288075a3de2238a6d1 (diff)
downloadcoreutils-b350b74916c0b67e3020b345b9064d962791490a.tar.xz
Remove assertions.
Diffstat (limited to 'lib')
-rw-r--r--lib/memcpy.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/memcpy.c b/lib/memcpy.c
index aec71e36b..dba7d56f1 100644
--- a/lib/memcpy.c
+++ b/lib/memcpy.c
@@ -2,15 +2,6 @@
if the source overlaps with the destination.
Return DESTADDR. */
-#include <assert.h>
-
-/* FIXME: uncomment the following for releases. */
-#define NDEBUG 1
-
-#ifndef ABS
-# define ABS(x) ((x) < 0 ? (-(x)) : (x))
-#endif
-
char *
memcpy (destaddr, srcaddr, len)
char *destaddr;
@@ -19,10 +10,6 @@ memcpy (destaddr, srcaddr, len)
{
char *dest = destaddr;
- assert (len >= 0);
- /* Make sure they don't overlap. */
- assert (ABS (destaddr - srcaddr) >= len);
-
while (len-- > 0)
*destaddr++ = *srcaddr++;
return dest;