From 1c93f114f41f570cebf646b93d1bc88bcbbe6279 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Sun, 19 Jan 2014 04:04:37 +0000 Subject: Start to reduce the madness in radix.c. This only used by the kernel since ages so remove the bits used for userland compiles. OK mikeb@ --- sys/net/radix.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'sys/net') diff --git a/sys/net/radix.c b/sys/net/radix.c index a8f74b00929..e839c77c166 100644 --- a/sys/net/radix.c +++ b/sys/net/radix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radix.c,v 1.34 2014/01/10 14:29:08 tedu Exp $ */ +/* $OpenBSD: radix.c,v 1.35 2014/01/19 04:04:36 claudio Exp $ */ /* $NetBSD: radix.c,v 1.20 2003/08/07 16:32:56 agc Exp $ */ /* @@ -36,19 +36,12 @@ * Routines to build and maintain radix trees for routing lookups. */ -#ifndef _NET_RADIX_H_ #include -#ifdef _KERNEL #include #include -#define M_DONTWAIT M_NOWAIT #include -#else -#include -#endif #include #include -#endif #ifndef SMALL_KERNEL #include @@ -1056,13 +1049,11 @@ void rn_init() { char *cp, *cplim; -#ifdef _KERNEL struct domain *dom; for (dom = domains; dom; dom = dom->dom_next) if (dom->dom_maxrtkey > max_keylen) max_keylen = dom->dom_maxrtkey; -#endif if (max_keylen == 0) { log(LOG_ERR, "rn_init: radix functions require max_keylen be set\n"); -- cgit v1.2.3