From: hno <> Date: Thu, 8 Feb 2001 02:04:04 +0000 (+0000) Subject: Cleaned up the namespace (local functions made static) X-Git-Tag: SQUID_3_0_PRE1~1610 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=48ebcb222dca12240e9e0b07a1db85ba6856241c;p=thirdparty%2Fsquid.git Cleaned up the namespace (local functions made static) --- diff --git a/include/radix.h b/include/radix.h index 07ac0c1191..5101e8c080 100644 --- a/include/radix.h +++ b/include/radix.h @@ -1,5 +1,5 @@ /* - * $Id: radix.h,v 1.8 2001/01/07 09:55:21 hno Exp $ + * $Id: radix.h,v 1.9 2001/02/07 19:04:04 hno Exp $ */ /* @@ -153,6 +153,6 @@ struct radix_node struct radix_node[2])), *rn_match __P((void *, struct radix_node_head *)), *rn_newpair __P((void *, int, struct radix_node[2])), *rn_search __P((void *, struct radix_node *)), *rn_search_m __P((void *, struct radix_node *, void *)); - +extern struct radix_node *rn_lookup(void *, void *, struct radix_node_head *); #define min(x,y) ((x)<(y)? (x) : (y)) #endif /* _RADIX_H_ */ diff --git a/lib/radix.c b/lib/radix.c index e071107014..ec7c692fde 100644 --- a/lib/radix.c +++ b/lib/radix.c @@ -1,5 +1,5 @@ /* - * $Id: radix.c,v 1.12 2001/02/07 18:56:50 hno Exp $ + * $Id: radix.c,v 1.13 2001/02/07 19:04:08 hno Exp $ * * DEBUG: section 53 Radix tree data structure implementation * AUTHOR: NetBSD Derived @@ -221,7 +221,7 @@ rn_refines(m_arg, n_arg) return (!masks_are_equal); } -static struct radix_node * +struct radix_node * rn_lookup(v_arg, m_arg, head) void *v_arg, *m_arg; struct radix_node_head *head; diff --git a/src/asn.cc b/src/asn.cc index 69380c9541..cbe98e318b 100644 --- a/src/asn.cc +++ b/src/asn.cc @@ -1,6 +1,6 @@ /* - * $Id: asn.cc,v 1.69 2001/02/07 18:56:51 hno Exp $ + * $Id: asn.cc,v 1.70 2001/02/07 19:04:08 hno Exp $ * * DEBUG: section 53 AS Number handling * AUTHOR: Duane Wessels, Kostas Anagnostakis @@ -93,9 +93,6 @@ static void asStateFree(void *data); static void destroyRadixNodeInfo(as_info *); static OBJH asnStats; -extern struct radix_node *rn_lookup(void *, void *, void *); - - /* PUBLIC */ int diff --git a/src/urn.cc b/src/urn.cc index a0f0a7fed1..c8117eca00 100644 --- a/src/urn.cc +++ b/src/urn.cc @@ -1,6 +1,6 @@ /* - * $Id: urn.cc,v 1.64 2001/01/12 00:37:23 wessels Exp $ + * $Id: urn.cc,v 1.65 2001/02/07 19:04:09 hno Exp $ * * DEBUG: section 52 URN Parsing * AUTHOR: Kostas Anagnostakis @@ -60,7 +60,7 @@ static url_entry *urnParseReply(const char *inbuf, method_t); static const char *const crlf = "\r\n"; static QS url_entry_sort; -url_entry * +static url_entry * urnFindMinRtt(url_entry * urls, method_t m, int *rtt_ret) { int min_rtt = 0;