summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;