diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-05-25 02:00:54 +0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-28 10:44:52 +0400 |
commit | d4f4469255359c97564b15b5ef04253fd3ec08f1 (patch) | |
tree | b9752e703c15bc1499439699ea0bbff56c325316 /net/batman-adv/translation-table.h | |
parent | 3b643de541d4051f236f1e422f3329cccb7bd9c5 (diff) | |
download | linux-d4f4469255359c97564b15b5ef04253fd3ec08f1.tar.xz |
batman-adv: beautify tt_global_add() argument list
Instead of adding a new bool argument each time it is needed, it is better (and
simpler) to pass an 8bit flag argument which contains all the needed flags
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/translation-table.h')
-rw-r--r-- | net/batman-adv/translation-table.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/translation-table.h b/net/batman-adv/translation-table.h index 7edc9dff8ba1..46b60bd822fe 100644 --- a/net/batman-adv/translation-table.h +++ b/net/batman-adv/translation-table.h @@ -32,8 +32,8 @@ void batadv_tt_global_add_orig(struct bat_priv *bat_priv, struct orig_node *orig_node, const unsigned char *tt_buff, int tt_buff_len); int batadv_tt_global_add(struct bat_priv *bat_priv, struct orig_node *orig_node, - const unsigned char *addr, uint8_t ttvn, bool roaming, - bool wifi); + const unsigned char *addr, uint8_t flags, + uint8_t ttvn); int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset); void batadv_tt_global_del_orig(struct bat_priv *bat_priv, struct orig_node *orig_node, |