aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/send.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/send.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/send.c')
-rw-r--r--net/batman-adv/send.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c
index a1b8c3173a3f..be0d581a62a9 100644
--- a/net/batman-adv/send.c
+++ b/net/batman-adv/send.c
@@ -165,7 +165,7 @@ static void send_packet(struct forw_packet *forw_packet)
165 struct bat_priv *bat_priv; 165 struct bat_priv *bat_priv;
166 struct batman_packet *batman_packet = 166 struct batman_packet *batman_packet =
167 (struct batman_packet *)(forw_packet->skb->data); 167 (struct batman_packet *)(forw_packet->skb->data);
168 unsigned char directlink = (batman_packet->flags & DIRECTLINK ? 1 : 0); 168 int directlink = (batman_packet->flags & DIRECTLINK ? 1 : 0);
169 169
170 if (!forw_packet->if_incoming) { 170 if (!forw_packet->if_incoming) {
171 pr_err("Error - can't forward packet: incoming iface not " 171 pr_err("Error - can't forward packet: incoming iface not "
@@ -307,12 +307,12 @@ void schedule_own_packet(struct hard_iface *hard_iface)
307void schedule_forward_packet(struct orig_node *orig_node, 307void schedule_forward_packet(struct orig_node *orig_node,
308 const struct ethhdr *ethhdr, 308 const struct ethhdr *ethhdr,
309 struct batman_packet *batman_packet, 309 struct batman_packet *batman_packet,
310 uint8_t directlink, int tt_buff_len, 310 int directlink, int tt_buff_len,
311 struct hard_iface *if_incoming) 311 struct hard_iface *if_incoming)
312{ 312{
313 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface); 313 struct bat_priv *bat_priv = netdev_priv(if_incoming->soft_iface);
314 struct neigh_node *router; 314 struct neigh_node *router;
315 unsigned char in_tq, in_ttl, tq_avg = 0; 315 uint8_t in_tq, in_ttl, tq_avg = 0;
316 unsigned long send_time; 316 unsigned long send_time;
317 317
318 if (batman_packet->ttl <= 1) { 318 if (batman_packet->ttl <= 1) {