Commit 8f0315190dec88bf035d50e4fd1db89859b414f6

Authored by David S. Miller
1 parent f2fd5c3458

ipv6: Make third arg to anycast_dst_alloc() bool.

Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 4 changed files with 4 additions and 4 deletions Side-by-side Diff

include/net/ip6_route.h
... ... @@ -102,7 +102,7 @@
102 102  
103 103 extern struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
104 104 const struct in6_addr *addr,
105   - int anycast);
  105 + bool anycast);
106 106  
107 107 extern int ip6_dst_hoplimit(struct dst_entry *dst);
108 108  
... ... @@ -630,7 +630,7 @@
630 630 goto out;
631 631 }
632 632  
633   - rt = addrconf_dst_alloc(idev, addr, 0);
  633 + rt = addrconf_dst_alloc(idev, addr, false);
634 634 if (IS_ERR(rt)) {
635 635 err = PTR_ERR(rt);
636 636 goto out;
... ... @@ -289,7 +289,7 @@
289 289 goto out;
290 290 }
291 291  
292   - rt = addrconf_dst_alloc(idev, addr, 1);
  292 + rt = addrconf_dst_alloc(idev, addr, true);
293 293 if (IS_ERR(rt)) {
294 294 kfree(aca);
295 295 err = PTR_ERR(rt);
... ... @@ -2056,7 +2056,7 @@
2056 2056  
2057 2057 struct rt6_info *addrconf_dst_alloc(struct inet6_dev *idev,
2058 2058 const struct in6_addr *addr,
2059   - int anycast)
  2059 + bool anycast)
2060 2060 {
2061 2061 struct net *net = dev_net(idev->dev);
2062 2062 struct rt6_info *rt = ip6_dst_alloc(&net->ipv6.ip6_dst_ops,