@@ -143,7 +143,7 @@ int8_t use_kernel_module( char *dev )
return -1;
}
-int8_t use_gateway_module(void)
+int32_t use_gateway_module(void)
{
return -1;
}
@@ -193,7 +193,7 @@ int8_t bind_to_iface( int32_t sock, char *dev ) {
-int8_t use_gateway_module(void) {
+int32_t use_gateway_module(void) {
int32_t fd;
@@ -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(void);
+int32_t use_gateway_module(void);
/* posix.c */
void print_animation( void );
We should not truncate the file descriptor of /dev/batgat from int32_t to int8_t (return type of use_kernel_module) when we save it as int32_t in batman_if::udp_tunnel_sock. Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de> --- batman/bsd/kernel.c | 2 +- batman/linux/kernel.c | 2 +- batman/os.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)