Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 Remove unnecessary casts from struct route * to...



details:   https://anonhg.NetBSD.org/src/rev/5201d95a7d1a
branches:  trunk
changeset: 756174:5201d95a7d1a
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Thu Jul 08 01:22:28 2010 +0000

description:
Remove unnecessary casts from struct route * to struct route *.

diffstat:

 sys/netinet6/raw_ip6.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 17795fb34b0a -r 5201d95a7d1a sys/netinet6/raw_ip6.c
--- a/sys/netinet6/raw_ip6.c    Thu Jul 08 01:13:01 2010 +0000
+++ b/sys/netinet6/raw_ip6.c    Thu Jul 08 01:22:28 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raw_ip6.c,v 1.106 2010/07/08 01:13:01 dyoung Exp $     */
+/*     $NetBSD: raw_ip6.c,v 1.107 2010/07/08 01:22:28 dyoung Exp $     */
 /*     $KAME: raw_ip6.c,v 1.82 2001/07/23 18:57:56 jinmei Exp $        */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.106 2010/07/08 01:13:01 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.107 2010/07/08 01:22:28 dyoung Exp $");
 
 #include "opt_ipsec.h"
 
@@ -469,7 +469,7 @@
         * Source address selection.
         */
        if ((in6a = in6_selectsrc(dstsock, optp, in6p->in6p_moptions,
-           (struct route *)&in6p->in6p_route, &in6p->in6p_laddr, &oifp,
+           &in6p->in6p_route, &in6p->in6p_laddr, &oifp,
            &error)) == 0) {
                if (error == 0)
                        error = EADDRNOTAVAIL;
@@ -765,7 +765,7 @@
 
                /* Source address selection. XXX: need pcblookup? */
                in6a = in6_selectsrc(addr, in6p->in6p_outputopts,
-                   in6p->in6p_moptions, (struct route *)&in6p->in6p_route,
+                   in6p->in6p_moptions, &in6p->in6p_route,
                    &in6p->in6p_laddr, &ifp, &error);
                if (in6a == NULL) {
                        if (error == 0)



Home | Main Index | Thread Index | Old Index