diff options
author | jlemon <jlemon@FreeBSD.org> | 2001-09-06 02:40:43 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2001-09-06 02:40:43 +0000 |
commit | f729fe0a4a07f77cf2a60a88614a01b6bd649256 (patch) | |
tree | c9d6ec3dbd785e910055574e19a85daa63dc23d6 /sys/netinet/in.c | |
parent | 32d9aeaf2d0cb3d17941506155a2e52a94e50550 (diff) | |
download | FreeBSD-src-f729fe0a4a07f77cf2a60a88614a01b6bd649256.zip FreeBSD-src-f729fe0a4a07f77cf2a60a88614a01b6bd649256.tar.gz |
Wrap array accesses in macros, which also happen to be lvalues:
ifnet_addrs[i - 1] -> ifaddr_byindex(i)
ifindex2ifnet[i] -> ifnet_byindex(i)
This is intended to ease the conversion to SMPng.
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r-- | sys/netinet/in.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c index 7242545..c0b45c3 100644 --- a/sys/netinet/in.c +++ b/sys/netinet/in.c @@ -410,7 +410,7 @@ in_control(so, cmd, data, ifp, p) * XXX horrible hack to detect that we are being called * from if_detach() */ - if (!ifnet_addrs[ifp->if_index - 1]) { + if (ifaddr_byindex(ifp->if_index) != NULL) { in_pcbpurgeif0(LIST_FIRST(ripcbinfo.listhead), ifp); in_pcbpurgeif0(LIST_FIRST(udbinfo.listhead), ifp); } |