[Olsr-dev] [olsrd] [PATCH v1 14/29] gateway: make olsr_trigger_inetgw_selection

Ferry Huberts (spam-protected)
Tue Jul 24 18:09:03 CEST 2012


From: Ferry Huberts <(spam-protected)>

it is only used in gateway.c

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/gateway.c |    2 +-
 src/gateway.h |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gateway.c b/src/gateway.c
index a5dfec6..46fb695 100644
--- a/src/gateway.c
+++ b/src/gateway.c
@@ -176,7 +176,7 @@ olsr_trigger_inetgw_startup(void) {
  * @param ipv6 trigger a ipv6 gateway lookup
  * @return 0 if successful, -1 otherwise
  */
-int
+static int
 olsr_trigger_inetgw_selection(bool ipv4, bool ipv6) {
   gw_handler->select_gateway(ipv4, ipv6);
   return ((ipv4 && current_ipv4_gw == NULL) || (ipv6 && current_ipv6_gw == NULL)) ? -1 : 0;
diff --git a/src/gateway.h b/src/gateway.h
index 9f554f1..7dd7775 100644
--- a/src/gateway.h
+++ b/src/gateway.h
@@ -68,7 +68,6 @@ extern struct avl_tree gateway_tree;
 int olsr_init_gateways(void);
 void olsr_cleanup_gateways(void);
 void olsr_trigger_inetgw_startup(void);
-int olsr_trigger_inetgw_selection(bool ipv4, bool ipv6);
 void olsr_trigger_gatewayloss_check(void);
 
 struct gateway_entry *olsr_find_gateway_entry(union olsr_ip_addr *originator);
-- 
1.7.10.4





More information about the Olsr-dev mailing list