Source-Changes-HG archive

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

[src/trunk]: src/sys/sys "safe" the macros for bcopy bzero and bcmp, after a ...



details:   https://anonhg.NetBSD.org/src/rev/99718f77983f
branches:  trunk
changeset: 512121:99718f77983f
user:      perry <perry%NetBSD.org@localhost>
date:      Fri Jul 06 15:59:23 2001 +0000

description:
"safe" the macros for bcopy bzero and bcmp, after a request from mrg

diffstat:

 sys/sys/systm.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r 787e7c12a858 -r 99718f77983f sys/sys/systm.h
--- a/sys/sys/systm.h   Fri Jul 06 15:11:18 2001 +0000
+++ b/sys/sys/systm.h   Fri Jul 06 15:59:23 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.129 2001/07/05 21:51:10 tv Exp $   */
+/*     $NetBSD: systm.h,v 1.130 2001/07/06 15:59:23 perry Exp $        */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -210,9 +210,9 @@
 
 int    kcopy __P((const void *, void *, size_t));
 
-#define bcopy(src, dst, len)   memmove(dst, src, len)
-#define bzero(src, len)                memset(src, 0, len)
-#define bcmp(a, b, len)                memcmp(a, b, len)
+#define bcopy(src, dst, len)   memmove((dst), (src), (len))
+#define bzero(src, len)                memset((src), 0, (len))
+#define bcmp(a, b, len)                memcmp((a), (b), (len))
 
 int    copystr __P((const void *, void *, size_t, size_t *));
 int    copyinstr __P((const void *, void *, size_t, size_t *));



Home | Main Index | Thread Index | Old Index