[B.A.T.M.A.N.] [PATCHv2] Remove unused parameter of use_gateway_module

Sven Eckelmann sven.eckelmann at gmx.de
Mon Dec 1 19:14:14 UTC 2008


Signed-off-by: Sven Eckelmann <sven.eckelmann at gmx.de>
---
 batman/os.h         |    2 +-
 batman/posix/init.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/batman/os.h b/batman/os.h
index 76525bf..5531bae 100644
--- a/batman/os.h
+++ b/batman/os.h
@@ -70,7 +70,7 @@ int32_t get_send_redirects( char *dev );
 void set_forwarding( int32_t state );
 int32_t get_forwarding( void );
 int8_t bind_to_iface( int32_t sock, char *dev );
-int8_t use_gateway_module();
+int8_t use_gateway_module(void);
 
 /* posix.c */
 void print_animation( void );
diff --git a/batman/posix/init.c b/batman/posix/init.c
index 79d5a3b..9ad06f9 100644
--- a/batman/posix/init.c
+++ b/batman/posix/init.c
@@ -1152,7 +1152,7 @@ void init_interface_gw (void) {
 	struct batman_if *batman_if = (struct batman_if *)if_list.next;
 
 
-	if ( ( batman_if->udp_tunnel_sock = use_gateway_module( batman_if->dev ) ) < 0 ) {
+	if ( ( batman_if->udp_tunnel_sock = use_gateway_module() ) < 0 ) {
 
 		batman_if->addr.sin_port = htons(GW_PORT);
 
-- 
1.6.0.4




More information about the B.A.T.M.A.N mailing list