]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix Linux compile. v5.5.6
authorRoy Marples <roy@marples.name>
Wed, 28 Mar 2012 10:26:20 +0000 (10:26 +0000)
committerRoy Marples <roy@marples.name>
Wed, 28 Mar 2012 10:26:20 +0000 (10:26 +0000)
if-linux.c

index a0c10086591eb9b4937597843e5c53b8f4f14605..f4ab7fca1f279e847289332eccfa6fd70d1628f0 100644 (file)
@@ -572,7 +572,7 @@ if_route(const struct rt *rt, int action)
                nlm->rt.rtm_type = RTN_UNICAST;
        }
 
-       nlm->rt.rtm_dst_len = inet_ntocidr(&rt->net);
+       nlm->rt.rtm_dst_len = inet_ntocidr(rt->net);
        add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_DST,
            &rt->dest.s_addr, sizeof(rt->dest.s_addr));
        if (nlm->rt.rtm_protocol == RTPROT_KERNEL) {