]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
batman-adv: Make gateway_get_selected type safe
authorLinus Lüssing <linus.luessing@web.de>
Mon, 14 Mar 2011 22:43:30 +0000 (22:43 +0000)
committerSven Eckelmann <sven@narfation.org>
Sun, 17 Apr 2011 19:11:01 +0000 (21:11 +0200)
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>
net/batman-adv/gateway_client.c
net/batman-adv/gateway_client.h

index 3cc43558cf9cbb0958d55f4f6ed236f9c3873322..27b87add044bde231e2df70d7d80a27f80477f08 100644 (file)
@@ -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;
index 2aa439124ee338a2772093975a59732ccfee8524..97c31d178163c99a5b2b254025d7d2f54bcaf732 100644 (file)
@@ -24,7 +24,7 @@
 
 void gw_deselect(struct bat_priv *bat_priv);
 void gw_election(struct bat_priv *bat_priv);
-void *gw_get_selected(struct bat_priv *bat_priv);
+struct orig_node *gw_get_selected(struct bat_priv *bat_priv);
 void gw_check_election(struct bat_priv *bat_priv, struct orig_node *orig_node);
 void gw_node_update(struct bat_priv *bat_priv,
                    struct orig_node *orig_node, uint8_t new_gwflags);