[Olsr-dev] [PATCH v1 3/8] linux: fix type of af_family
Ferry Huberts
(spam-protected)
Tue Aug 19 12:07:47 CEST 2014
From: Ferry Huberts <(spam-protected)>
Signed-off-by: Ferry Huberts <(spam-protected)>
---
src/linux/kernel_routes_nl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/linux/kernel_routes_nl.c b/src/linux/kernel_routes_nl.c
index 43f3a20..5f87989 100644
--- a/src/linux/kernel_routes_nl.c
+++ b/src/linux/kernel_routes_nl.c
@@ -338,7 +338,7 @@ int olsr_os_ifip(int ifindex, union olsr_ip_addr *ip, bool create) {
return olsr_add_ip(ifindex, ip, NULL, create);
}
-static int olsr_new_netlink_route(int family, uint32_t rttable, int if_index, int metric, int protocol,
+static int olsr_new_netlink_route(unsigned char family, uint32_t rttable, int if_index, int metric, int protocol,
const union olsr_ip_addr *src, const union olsr_ip_addr *gw, const struct olsr_ip_prefix *dst,
bool set, bool del_similar) {
@@ -489,7 +489,7 @@ void olsr_os_inetgw_tunnel_route(uint32_t if_idx, bool ipv4, bool set, uint8_t t
}
}
-static int olsr_os_process_rt_entry(int af_family, const struct rt_entry *rt, bool set) {
+static int olsr_os_process_rt_entry(unsigned char af_family, const struct rt_entry *rt, bool set) {
int metric;
uint32_t table;
const struct rt_nexthop *nexthop;
--
1.9.3
More information about the Olsr-dev
mailing list