diff options
author | 2014-01-15 09:25:38 +0000 | |
---|---|---|
committer | 2014-01-15 09:25:38 +0000 | |
commit | ef9c65d8e7335676de99084a56ffcfbb748b65f3 (patch) | |
tree | 40421255a42500635052660137cdf27ea7e507d3 | |
parent | remove functions that were uses by other (non-linux) compat; and (diff) | |
download | wireguard-openbsd-ef9c65d8e7335676de99084a56ffcfbb748b65f3.tar.xz wireguard-openbsd-ef9c65d8e7335676de99084a56ffcfbb748b65f3.zip |
Remove assigned but never read value.
ok stsp@
-rw-r--r-- | sys/netinet6/in6.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c index 5b9973da5b8..2a4976c74fd 100644 --- a/sys/netinet6/in6.c +++ b/sys/netinet6/in6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in6.c,v 1.128 2014/01/13 23:03:52 bluhm Exp $ */ +/* $OpenBSD: in6.c,v 1.129 2014/01/15 09:25:38 mpi Exp $ */ /* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */ /* @@ -136,16 +136,13 @@ void in6_ifloop_request(int cmd, struct ifaddr *ifa) { struct rt_addrinfo info; - struct sockaddr_in6 lo_sa; struct sockaddr_in6 all1_sa; struct rtentry *nrt = NULL; int e; - bzero(&lo_sa, sizeof(lo_sa)); bzero(&all1_sa, sizeof(all1_sa)); - lo_sa.sin6_family = all1_sa.sin6_family = AF_INET6; - lo_sa.sin6_len = all1_sa.sin6_len = sizeof(struct sockaddr_in6); - lo_sa.sin6_addr = in6addr_loopback; + all1_sa.sin6_family = AF_INET6; + all1_sa.sin6_len = sizeof(struct sockaddr_in6); all1_sa.sin6_addr = in6mask128; /* |