diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-04-25 10:41:10 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-04-25 10:41:10 +0000 |
commit | 102655be7533e94fe8745b8d900268ea71b7fe5c (patch) | |
tree | 97bfc262b67d2e1b26243e18e1a0aee78aac76f5 /sys/net/rtsock.c | |
parent | ec3dec9c5e463d0e88d0f97128cd71b8c07fbb1f (diff) |
Remove rti_ifp from rt_addrinfo, one less ifp pointer, say yay!
This pointer was only needed by rt_getifa() to find an address, so
turn it into a local variable.
ok henning@, bluhm@
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r-- | sys/net/rtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 98e2cc93235..4178fe6aa22 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.142 2014/03/18 10:47:34 mpi Exp $ */ +/* $OpenBSD: rtsock.c,v 1.143 2014/04/25 10:41:09 mpi Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -768,7 +768,7 @@ report: ifafree(rt->rt_ifa); rt->rt_ifa = ifa; ifa->ifa_refcnt++; - rt->rt_ifp = info.rti_ifp; + rt->rt_ifp = ifa->ifa_ifp; #ifndef SMALL_KERNEL /* recheck link state after ifp change*/ rt_if_linkstate_change( |