Subject: namespace pollution by sys/net/radix.h
To: None <tech-net@netbsd.org>
From: None <itojun@iijlab.net>
List: tech-net
Date: 10/08/2000 09:11:01
	sys/net/radix.h pollutes namespace like Free().  i believe it is for
	code sharing between sys/net and sbin/routed (and such), however,
	i don't think we have no such requirement any more.

	if i make the following change, does it cause problem to anyone?

itojun


---
Index: radix.h
===================================================================
RCS file: /cvsroot/syssrc/sys/net/radix.h,v
retrieving revision 1.9
diff -c -r1.9 radix.h
*** radix.h	1997/04/02 21:17:31	1.9
--- radix.h	2000/10/08 00:09:35
***************
*** 132,144 ****
  };
  
  
! #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
  #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));
--- 132,138 ----
  };
  
  
! #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));