[Olsr-dev] [PATCH v1 3/8] linux: fix type of af_family

Henning Rogge (spam-protected)
Tue Aug 19 13:01:19 CEST 2014


Most userspace API uses "int" für address family, thats why we used "int"
too (I think).

Henning


On Tue, Aug 19, 2014 at 12:07 PM, Ferry Huberts <(spam-protected)> wrote:

> 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
>
>
> --
> Olsr-dev mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20140819/ae41f11b/attachment.html>


More information about the Olsr-dev mailing list