Commit 4c804850 authored by Linus Lüssing's avatar Linus Lüssing Committed by Sven Eckelmann

batman-adv: Make gateway_get_selected type safe

Make the return value explicit instead of (void *).
Signed-off-by: default avatarLinus Lüssing <linus.luessing@web.de>
Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
parent 55158629
...@@ -42,7 +42,7 @@ static void gw_node_free_ref(struct gw_node *gw_node) ...@@ -42,7 +42,7 @@ static void gw_node_free_ref(struct gw_node *gw_node)
call_rcu(&gw_node->rcu, gw_node_free_rcu); 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 gw_node *curr_gateway_tmp;
struct orig_node *orig_node = NULL; struct orig_node *orig_node = NULL;
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
void gw_deselect(struct bat_priv *bat_priv); void gw_deselect(struct bat_priv *bat_priv);
void gw_election(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_check_election(struct bat_priv *bat_priv, struct orig_node *orig_node);
void gw_node_update(struct bat_priv *bat_priv, void gw_node_update(struct bat_priv *bat_priv,
struct orig_node *orig_node, uint8_t new_gwflags); struct orig_node *orig_node, uint8_t new_gwflags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment