gateway: make olsr_trigger_inetgw_selection
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 18 Jul 2012 08:40:18 +0000 (10:40 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 25 Jul 2012 06:55:06 +0000 (08:55 +0200)
it is only used in gateway.c

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c
src/gateway.h

index bdaf058..a12c6fb 100644 (file)
@@ -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;
index 9f554f1..7dd7775 100644 (file)
@@ -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);