diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2014-04-21 11:10:55 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2014-04-21 11:10:55 +0000 |
commit | 72db62ba641f18218b24986c24fed35a87c901f3 (patch) | |
tree | 81c7576fe1ff945724800630ba86c40f97602b83 /sys/netinet6/in6_src.c | |
parent | a7646c72d921d269b3b42c1b9cc50aec5263af76 (diff) |
we'll do fine without casting NULL to struct foo * / void *
ok gcc & md5 (alas, no binary change)
Diffstat (limited to 'sys/netinet6/in6_src.c')
-rw-r--r-- | sys/netinet6/in6_src.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/in6_src.c b/sys/netinet6/in6_src.c index 513aef2a245..7ae1f427cf9 100644 --- a/sys/netinet6/in6_src.c +++ b/sys/netinet6/in6_src.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6_src.c,v 1.42 2014/04/18 10:48:30 jca Exp $ */ +/* $OpenBSD: in6_src.c,v 1.43 2014/04/21 11:10:54 henning Exp $ */ /* $KAME: in6_src.c,v 1.36 2001/02/06 04:08:17 itojun Exp $ */ /* @@ -421,9 +421,9 @@ selectroute(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts, sin6tosa(&ro->ro_dst)->sa_family != AF_INET6 || !IN6_ARE_ADDR_EQUAL(&ro->ro_dst.sin6_addr, dst))) { RTFREE(ro->ro_rt); - ro->ro_rt = (struct rtentry *)NULL; + ro->ro_rt = NULL; } - if (ro->ro_rt == (struct rtentry *)NULL) { + if (ro->ro_rt == NULL) { struct sockaddr_in6 *sa6; /* No route yet, so try to acquire one */ |