Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet6 Change 0 to NULL for rtrequest's last argument ...



details:   https://anonhg.NetBSD.org/src/rev/cf313c1aa219
branches:  trunk
changeset: 340133:cf313c1aa219
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Aug 24 09:45:29 2015 +0000

description:
Change 0 to NULL for rtrequest's last argument (struct rtentry **ret_nrt)

diffstat:

 sys/netinet6/icmp6.c   |  8 ++++----
 sys/netinet6/nd6_rtr.c |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r 250576a34d41 -r cf313c1aa219 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c      Mon Aug 24 08:31:56 2015 +0000
+++ b/sys/netinet6/icmp6.c      Mon Aug 24 09:45:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: icmp6.c,v 1.173 2015/08/07 08:11:33 ozaki-r Exp $      */
+/*     $NetBSD: icmp6.c,v 1.174 2015/08/24 09:45:29 ozaki-r Exp $      */
 /*     $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.173 2015/08/07 08:11:33 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.174 2015/08/24 09:45:29 ozaki-r Exp $");
 
 #include "opt_inet.h"
 #include "opt_ipsec.h"
@@ -2717,7 +2717,7 @@
        if ((rt->rt_flags & (RTF_DYNAMIC | RTF_HOST)) ==
            (RTF_DYNAMIC | RTF_HOST)) {
                rtrequest((int) RTM_DELETE, rt_getkey(rt),
-                   rt->rt_gateway, rt_mask(rt), rt->rt_flags, 0);
+                   rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL);
        } else {
                if (!(rt->rt_rmx.rmx_locks & RTV_MTU))
                        rt->rt_rmx.rmx_mtu = 0;
@@ -2732,7 +2732,7 @@
        if ((rt->rt_flags & (RTF_GATEWAY | RTF_DYNAMIC | RTF_HOST)) ==
            (RTF_GATEWAY | RTF_DYNAMIC | RTF_HOST)) {
                rtrequest((int) RTM_DELETE, rt_getkey(rt),
-                   rt->rt_gateway, rt_mask(rt), rt->rt_flags, 0);
+                   rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL);
        }
 }
 
diff -r 250576a34d41 -r cf313c1aa219 sys/netinet6/nd6_rtr.c
--- a/sys/netinet6/nd6_rtr.c    Mon Aug 24 08:31:56 2015 +0000
+++ b/sys/netinet6/nd6_rtr.c    Mon Aug 24 09:45:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nd6_rtr.c,v 1.102 2015/08/07 08:11:33 ozaki-r Exp $    */
+/*     $NetBSD: nd6_rtr.c,v 1.103 2015/08/24 09:45:29 ozaki-r Exp $    */
 /*     $KAME: nd6_rtr.c,v 1.95 2001/02/07 08:09:47 itojun Exp $        */
 
 /*
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.102 2015/08/07 08:11:33 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nd6_rtr.c,v 1.103 2015/08/24 09:45:29 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2122,7 +2122,7 @@
                return (0);
 
        return (rtrequest(RTM_DELETE, rt_getkey(rt), rt->rt_gateway,
-           rt_mask(rt), rt->rt_flags, 0));
+           rt_mask(rt), rt->rt_flags, NULL));
 #undef SIN6
 }
 



Home | Main Index | Thread Index | Old Index