aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/routing.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-06-15 03:41:37 -0400
committerSven Eckelmann <sven@narfation.org>2011-06-20 05:37:18 -0400
commitb4e1705417c6cc7d46d9020259a2c8f457cf82bd (patch)
treed057a27c91d0bce396726878a6c8995f0d5b0d3b /net/batman-adv/routing.c
parentb2c44a53836559b5e2823aa215c979c33bc9e2db (diff)
batman-adv: Reduce usage of char
char was used in different places to store information without really using the characteristics of that data type or by ignoring the fact that char has not a well defined signedness. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/routing.c')
-rw-r--r--net/batman-adv/routing.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/batman-adv/routing.c b/net/batman-adv/routing.c
index d5ce644f8720..eb6fb7d2d368 100644
--- a/net/batman-adv/routing.c
+++ b/net/batman-adv/routing.c
@@ -163,7 +163,7 @@ static int is_bidirectional_neigh(struct orig_node *orig_node,
163 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); 163 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface);
164 struct neigh_node *neigh_node = NULL, *tmp_neigh_node; 164 struct neigh_node *neigh_node = NULL, *tmp_neigh_node;
165 struct hlist_node *node; 165 struct hlist_node *node;
166 unsigned char total_count; 166 uint8_t total_count;
167 uint8_t orig_eq_count, neigh_rq_count, tq_own; 167 uint8_t orig_eq_count, neigh_rq_count, tq_own;
168 int tq_asym_penalty, ret = 0; 168 int tq_asym_penalty, ret = 0;
169 169
@@ -602,9 +602,9 @@ void receive_bat_packet(const struct ethhdr *ethhdr,
602 struct orig_node *orig_neigh_node, *orig_node; 602 struct orig_node *orig_neigh_node, *orig_node;
603 struct neigh_node *router = NULL, *router_router = NULL; 603 struct neigh_node *router = NULL, *router_router = NULL;
604 struct neigh_node *orig_neigh_router = NULL; 604 struct neigh_node *orig_neigh_router = NULL;
605 char has_directlink_flag; 605 int has_directlink_flag;
606 char is_my_addr = 0, is_my_orig = 0, is_my_oldorig = 0; 606 int is_my_addr = 0, is_my_orig = 0, is_my_oldorig = 0;
607 char is_broadcast = 0, is_bidirectional, is_single_hop_neigh; 607 int is_broadcast = 0, is_bidirectional, is_single_hop_neigh;
608 int is_duplicate; 608 int is_duplicate;
609 uint32_t if_incoming_seqno; 609 uint32_t if_incoming_seqno;
610 610