projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42d9f2c
)
batman-adv: iv_ogm_aggr_packet, bool return value
author
Markus Pargmann
<mpa@pengutronix.de>
Fri, 26 Dec 2014 11:41:27 +0000
(12:41 +0100)
committer
Antonio Quartulli
<antonio@meshcoding.com>
Fri, 29 May 2015 08:13:36 +0000
(10:13 +0200)
This function returns bool values, so it should be defined to return
them instead of the whole int range.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/bat_iv_ogm.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/bat_iv_ogm.c
b/net/batman-adv/bat_iv_ogm.c
index 123aabbcb003ec7bd52fc212b93f0ebf5e8b5d1f..00151385ad116397b416ff32831e2bd36cfa9583 100644
(file)
--- a/
net/batman-adv/bat_iv_ogm.c
+++ b/
net/batman-adv/bat_iv_ogm.c
@@
-392,8
+392,8
@@
static uint8_t batadv_hop_penalty(uint8_t tq,
}
/* is there another aggregated packet here? */
-static
int
batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len,
- __be16 tvlv_len)
+static
bool
batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len,
+
__be16 tvlv_len)
{
int next_buff_pos = 0;