From 62082c7f659e100465060df7218c10762516d9e6 Mon Sep 17 00:00:00 2001 From: bde Date: Mon, 24 Nov 1997 13:50:24 +0000 Subject: [PATCH] Unstaticized rn_delete() and rn_lookup(). They are used in dark corners of netatalk (if NETATALKDEBUG is configured). Removed stray semicolons. --- sys/net/radix.c | 14 +++++--------- sys/net/radix.h | 5 ++++- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/sys/net/radix.c b/sys/net/radix.c index bc1b7ee1d1f..68cc40019e9 100644 --- a/sys/net/radix.c +++ b/sys/net/radix.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)radix.c 8.4 (Berkeley) 11/2/94 - * $Id$ + * $Id: radix.c,v 1.13 1997/02/22 09:41:12 peter Exp $ */ /* @@ -51,14 +51,10 @@ #include #endif -static struct radix_node * - rn_lookup __P((void *v_arg, void *m_arg, - struct radix_node_head *head)); static int rn_walktree_from __P((struct radix_node_head *h, void *a, void *m, walktree_f_t *f, void *w)); static int rn_walktree __P((struct radix_node_head *, walktree_f_t *, void *)); static struct radix_node - *rn_delete __P((void *, void *, struct radix_node_head *)), *rn_insert __P((void *, struct radix_node_head *, int *, struct radix_node [2])), *rn_newpair __P((void *, int, struct radix_node[2])), @@ -132,7 +128,7 @@ rn_search(v_arg, head) x = x->rn_l; } return (x); -}; +} static struct radix_node * rn_search_m(v_arg, head, m_arg) @@ -150,7 +146,7 @@ rn_search_m(v_arg, head, m_arg) x = x->rn_l; } return x; -}; +} int rn_refines(m_arg, n_arg) @@ -321,7 +317,7 @@ rn_match(v_arg, head) } } while (t != top); return 0; -}; +} #ifdef RN_DEBUG int rn_nodenum; @@ -673,7 +669,7 @@ rn_addroute(v_arg, n_arg, head, treenodes) return tt; } -static struct radix_node * +struct radix_node * rn_delete(v_arg, netmask_arg, head) void *v_arg, *netmask_arg; struct radix_node_head *head; diff --git a/sys/net/radix.h b/sys/net/radix.h index a7287e500f4..cd18f7a12af 100644 --- a/sys/net/radix.h +++ b/sys/net/radix.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)radix.h 8.2 (Berkeley) 10/31/94 - * $Id: radix.h,v 1.12 1997/09/07 08:49:04 bde Exp $ + * $Id: radix.h,v 1.13 1997/10/12 20:25:13 phk Exp $ */ #ifndef _RADIX_H_ @@ -161,6 +161,9 @@ struct radix_node *rn_addmask __P((void *, int, int)), *rn_addroute __P((void *, void *, struct radix_node_head *, struct radix_node [2])), + *rn_delete __P((void *, void *, struct radix_node_head *)), + *rn_lookup __P((void *v_arg, void *m_arg, + struct radix_node_head *head)), *rn_match __P((void *, struct radix_node_head *)); -- 2.45.2