]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Staticized lots of local functions.
authorMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 09:58:23 +0000 (09:58 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 09:58:23 +0000 (09:58 +0000)
filter/filter.c
lib/slab.c
proto/bgp/bgp.c
proto/ospf/dbdes.c
proto/ospf/iface.c
proto/ospf/neighbor.c
proto/ospf/packet.c
proto/ospf/topology.c
sysdep/linux/netlink/netlink.c

index 9bae856b67d84c64c6fa04370651e20d2ad1b2a4..9cde3d96ad6219b8176c28faeb24b430b6cb7ebc 100644 (file)
@@ -50,7 +50,7 @@
 
 #define CMP_ERROR 999
 
-struct adata *
+static struct adata *
 adata_empty(struct linpool *pool)
 {
   struct adata *res = lp_alloc(pool, sizeof(struct adata));
@@ -122,7 +122,7 @@ val_compare(struct f_val v1, struct f_val v2)
 /*
  * val_simple_in_range - check if @v1 ~ @v2 for everything except sets
  */ 
-int
+static int
 val_simple_in_range(struct f_val v1, struct f_val v2)
 {
   if ((v1.type == T_PATH) && (v2.type == T_PATH_MASK))
@@ -161,7 +161,7 @@ val_simple_in_range(struct f_val v1, struct f_val v2)
  * Checks if @v1 is element (|~| operator) of @v2. Sets are internally represented as balanced trees, see
  * |tree.c| module (this is not limited to sets, but for non-set cases, val_simple_in_range() is called early).
  */
-int
+static int
 val_in_range(struct f_val v1, struct f_val v2)
 {
   int res;
@@ -240,7 +240,7 @@ static rta *f_rta_copy;
 /*
  * rta_cow - prepare rta for modification by filter
  */
-void
+static void
 rta_cow(void)
 {
   if (!f_rta_copy) {
index c6a56f7bfbfd7373d5b64f48123fac8667904ae2..568f01a48734ea98dde82b2a1ed76f7a8e50c201 100644 (file)
@@ -188,7 +188,7 @@ sl_new(pool *p, unsigned size)
   return s;
 }
 
-struct sl_head *
+static struct sl_head *
 sl_new_head(slab *s)
 {
   struct sl_head *h = xmalloc(SLAB_SIZE);
index 9258d149f4d28658939fb429afaca6d1d9f8bc82..cedd223b75b7e3fb8125ac26ce482fdd097c90b4 100644 (file)
@@ -76,7 +76,7 @@ static void bgp_connect(struct bgp_proto *p);
 static void bgp_initiate(struct bgp_proto *p);
 static void bgp_setup_listen_sk(void);
 
-void
+static void
 bgp_close(struct bgp_proto *p UNUSED)
 {
   ASSERT(bgp_counter);
index bd78750c85c66d411b77a1f94560a240c4299446..5b455448d01deb95288280057e4dcd33afe678e7 100644 (file)
@@ -147,7 +147,7 @@ ospf_dbdes_send(struct ospf_neighbor *n)
   }
 }
 
-void
+static void
 ospf_dbdes_reqladd(struct ospf_dbdes_packet *ps, struct ospf_neighbor *n)
 {
   struct ospf_lsa_header *plsa, lsa;
index 70e73b935278f06fc523a2380d0e976bbec1d113..df73295d7ade5b0ab2a5588c6dee4d4b756029b6 100644 (file)
@@ -16,19 +16,19 @@ char *ospf_ism[]={ "interface up", "wait timer fired", "backup seen",
 
 char *ospf_it[]={ "broadcast", "nbma", "point-to-point", "virtual link" };
 
-void
+static void
 poll_timer_hook(timer *timer)
 {
   ospf_hello_send(timer, 1, NULL);
 }
 
-void
+static void
 hello_timer_hook(timer *timer)
 {
   ospf_hello_send(timer, 0, NULL);
 }
 
-void
+static void
 wait_timer_hook(timer *timer)
 {
   struct ospf_iface *ifa;
index 1ccc2765dacbc773eea8552d4a63171df883a85c..3337aab615f07bb0ccbe091bb9d9da3840e0184f 100644 (file)
@@ -210,7 +210,7 @@ electdr(list nl)
   return(n);
 }
 
-int
+static int
 can_do_adj(struct ospf_neighbor *n)
 {
   struct ospf_iface *ifa;
@@ -569,7 +569,6 @@ void
 rxmt_timer_hook(timer *timer)
 {
   struct ospf_neighbor *n = (struct ospf_neighbor *)timer->data;
-  struct ospf_iface *ifa = n->ifa;
   struct top_hash_entry *en;
 
   DBG("%s: RXMT timer fired on interface %s for neigh: %I.\n",
index 441bf04a223a8b0c8b60cb1aa0600353f00059bd..7bdc104a085c802f8aaf9feb0bddd6382d5e0001 100644 (file)
@@ -36,7 +36,7 @@ ospf_tx_authenticate (struct ospf_iface *ifa, struct ospf_packet *pkt)
   return;
 }
 
-int
+static int
 ospf_rx_authenticate (struct ospf_iface *ifa, struct ospf_packet *pkt)
 {
   int i;
index 81d35cc58f342a5df3eefc2184d8ed663b8aa711..73d2ddd2d98b0cffb49dd27f07edee01200fb80b 100644 (file)
@@ -20,7 +20,7 @@
 #define HASH_LO_STEP 2
 #define HASH_LO_MIN 8
 
-void *
+static void *
 originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p)
 {
   struct ospf_iface *ifa;
@@ -216,7 +216,7 @@ originate_rt_lsa(struct ospf_area *oa)
   oa->origrt=0;
 }
 
-void *
+static void *
 originate_net_lsa_body(struct ospf_iface *ifa, u16 *length,
   struct proto_ospf *po)
 {
index 83e93c9a630650016f2c593b873d11c93b3b0e12..a54e1157198497c0ae4a9b9e4e890cc5914b74b6 100644 (file)
@@ -541,7 +541,7 @@ krt_set_notify(struct krt_proto *p, net *n UNUSED, rte *new, rte *old)
     }
 }
 
-struct iface *
+static struct iface *
 krt_temp_iface(struct krt_proto *p, unsigned index)
 {
   struct iface *i, *j;