Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/net Pull up revision 1.10 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/5fd7392c9325
branches:  netbsd-1-5
changeset: 492783:5fd7392c9325
user:      he <he%NetBSD.org@localhost>
date:      Wed Feb 20 22:55:45 2002 +0000

description:
Pull up revision 1.10 (requested by he):
  Avoid namespace pollution, only define certain macros under _KERNEL.

diffstat:

 sys/net/radix.h |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (24 lines):

diff -r 52b0663aae8c -r 5fd7392c9325 sys/net/radix.h
--- a/sys/net/radix.h   Sat Feb 16 18:23:17 2002 +0000
+++ b/sys/net/radix.h   Wed Feb 20 22:55:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radix.h,v 1.9 1997/04/02 21:17:31 christos Exp $       */
+/*     $NetBSD: radix.h,v 1.9.32.1 2002/02/20 22:55:45 he Exp $        */
 
 /*
  * Copyright (c) 1988, 1989, 1993
@@ -132,13 +132,7 @@
 };
 
 
-#ifndef _KERNEL
-#define Bcmp(a, b, n) bcmp(((char *)(a)), ((char *)(b)), (n))
-#define Bcopy(a, b, n) bcopy(((char *)(a)), ((char *)(b)), (unsigned)(n))
-#define Bzero(p, n) bzero((char *)(p), (int)(n));
-#define R_Malloc(p, t, n) (p = (t) malloc((unsigned int)(n)))
-#define Free(p) free((char *)p);
-#else
+#ifdef _KERNEL
 #define Bcmp(a, b, n) bcmp(((caddr_t)(a)), ((caddr_t)(b)), (unsigned)(n))
 #define Bcopy(a, b, n) bcopy(((caddr_t)(a)), ((caddr_t)(b)), (unsigned)(n))
 #define Bzero(p, n) bzero((caddr_t)(p), (unsigned)(n));



Home | Main Index | Thread Index | Old Index