summaryrefslogtreecommitdiff
path: root/sys/net/radix.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2014-01-19 04:04:37 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2014-01-19 04:04:37 +0000
commit1c93f114f41f570cebf646b93d1bc88bcbbe6279 (patch)
tree0f814b62fb67c4be1916a0819a0c94bf339572b9 /sys/net/radix.c
parent9a1c5c3dc3be273273208de2a8bf595642d3c43e (diff)
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@
Diffstat (limited to 'sys/net/radix.c')
-rw-r--r--sys/net/radix.c11
1 files changed, 1 insertions, 10 deletions
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 <sys/param.h>
-#ifdef _KERNEL
#include <sys/systm.h>
#include <sys/malloc.h>
-#define M_DONTWAIT M_NOWAIT
#include <sys/domain.h>
-#else
-#include <stdlib.h>
-#endif
#include <sys/syslog.h>
#include <net/radix.h>
-#endif
#ifndef SMALL_KERNEL
#include <sys/socket.h>
@@ -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");