From ad037eb274ba982e19b6f6050a0879a377f879e1 Mon Sep 17 00:00:00 2001 From: itojun Date: Mon, 6 Nov 2000 11:07:37 +0000 Subject: [PATCH] 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) --- sys/net/radix.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sys/net/radix.h b/sys/net/radix.h index b82c31c89a6a..048ecbead547 100644 --- a/sys/net/radix.h +++ b/sys/net/radix.h @@ -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));