Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/md Resynch with libkern



details:   https://anonhg.NetBSD.org/src/rev/c8bf3fa99c95
branches:  trunk
changeset: 476444:c8bf3fa99c95
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Thu Sep 16 17:08:04 1999 +0000

description:
Resynch with libkern

diffstat:

 lib/libc/md/md5c.c |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (36 lines):

diff -r 897fd575f00e -r c8bf3fa99c95 lib/libc/md/md5c.c
--- a/lib/libc/md/md5c.c        Thu Sep 16 17:03:46 1999 +0000
+++ b/lib/libc/md/md5c.c        Thu Sep 16 17:08:04 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md5c.c,v 1.12 1999/09/16 11:45:10 lukem Exp $  */
+/*     $NetBSD: md5c.c,v 1.13 1999/09/16 17:08:04 sommerfeld Exp $     */
 
 /*
  * This file is derived from the RSA Data Security, Inc. MD5 Message-Digest
@@ -30,8 +30,8 @@
  */
 
 #if defined(_KERNEL) || defined(_STANDALONE)
+#include <lib/libkern/libkern.h>
 #include <sys/param.h>
-#include <sys/systm.h>
 #include <sys/md5.h>
 #define _DIAGASSERT(x) (void)0
 #else
@@ -42,16 +42,7 @@
 #include <md5.h>
 #endif /* _KERNEL || _STANDALONE */
 
-/*
- * XXX Kludge until there is resolution regarding mem*() functions
- * XXX in the kernel.
- */
-#if defined(_KERNEL) || defined(_STANDALONE)
-#define        memcpy(s, d, l)         bcopy((d), (s), (l))
-#define        ZEROIZE(d, l)           bzero((d), (l))
-#else
 #define        ZEROIZE(d, l)           memset((d), 0, (l))
-#endif /* _KERNEL || _STANDALONE */
 
 typedef unsigned char *POINTER;
 typedef u_int16_t UINT2;



Home | Main Index | Thread Index | Old Index