summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/gateway_client.c
diff options
context:
space:
mode:
authorLinus Lüssing <linus.luessing@web.de>2011-03-14 23:43:30 +0100
committerSven Eckelmann <sven@narfation.org>2011-04-17 21:11:01 +0200
commit4c804850572f70a2350e4d1e79d6659392b07733 (patch)
tree54707084e38a1995aec5fc2eb44c114f15a48f85 /net/batman-adv/gateway_client.c
parentbatman-adv: Move bonding / iface alternating router search to own functions (diff)
downloadlinux-4c804850572f70a2350e4d1e79d6659392b07733.tar.xz
linux-4c804850572f70a2350e4d1e79d6659392b07733.zip
batman-adv: Make gateway_get_selected type safe
Make the return value explicit instead of (void *). Signed-off-by: Linus Lüssing <linus.luessing@web.de> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/gateway_client.c')
-rw-r--r--net/batman-adv/gateway_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c
index 3cc43558cf9c..27b87add044b 100644
--- a/net/batman-adv/gateway_client.c
+++ b/net/batman-adv/gateway_client.c
@@ -42,7 +42,7 @@ static void gw_node_free_ref(struct gw_node *gw_node)
call_rcu(&gw_node->rcu, gw_node_free_rcu);
}
-void *gw_get_selected(struct bat_priv *bat_priv)
+struct orig_node *gw_get_selected(struct bat_priv *bat_priv)
{
struct gw_node *curr_gateway_tmp;
struct orig_node *orig_node = NULL;