Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 49d9c47affafe2ee395498c82b038df2ee9b1222 Author: Antonio Quartulli ordex@autistici.org Date: Fri May 24 17:25:28 2013 +0200
batman-adv: fix num_changes type to uint16_t
Since the introduction of the tvlv_tt_data struct variables storing the number of TT changes are always declared as uint16_t, however some of them were not changed.
Switch them al to uint16_t.
Introduced by 8405301b979466610a726b7d595b6bfee5306cf7 ("batman-adv: tvlv - convert tt data sent within OGMs")
Signed-off-by: Antonio Quartulli ordex@autistici.org Signed-off-by: Marek Lindner lindner_marek@yahoo.de
49d9c47affafe2ee395498c82b038df2ee9b1222 translation-table.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/translation-table.c b/translation-table.c index d53c212..b9c4827 100644 --- a/translation-table.c +++ b/translation-table.c @@ -1486,7 +1486,7 @@ static void batadv_tt_req_list_free(struct batadv_priv *bat_priv) static void batadv_tt_save_orig_buffer(struct batadv_priv *bat_priv, struct batadv_orig_node *orig_node, const unsigned char *tt_buff, - uint8_t tt_num_changes) + uint16_t tt_num_changes) { uint16_t tt_buff_len = batadv_tt_len(tt_num_changes);
@@ -2408,8 +2408,8 @@ out: static void batadv_tt_update_orig(struct batadv_priv *bat_priv, struct batadv_orig_node *orig_node, const unsigned char *tt_buff, - uint8_t tt_num_changes, - uint8_t ttvn, uint32_t tt_crc) + uint16_t tt_num_changes, uint8_t ttvn, + uint32_t tt_crc) { uint8_t orig_ttvn = (uint8_t)atomic_read(&orig_node->last_ttvn); bool full_table = true;