avoid namespace pollution by radix.h. the #ifndef _KERNEL portion was to
use radix.c in userland compilation, however, noone is using it. (routed has its own radix.c)
This commit is contained in:
parent
f23be04b99
commit
ad037eb274
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: radix.h,v 1.9 1997/04/02 21:17:31 christos Exp $ */
|
||||
/* $NetBSD: radix.h,v 1.10 2000/11/06 11:07:37 itojun Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1993
|
||||
|
@ -132,13 +132,7 @@ struct radix_node_head {
|
|||
};
|
||||
|
||||
|
||||
#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));
|
||||
|
|
Loading…
Reference in New Issue