summaryrefslogtreecommitdiffstats
path: root/sys/net/if_iso88025subr.c
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-09-06 02:40:43 +0000
committerjlemon <jlemon@FreeBSD.org>2001-09-06 02:40:43 +0000
commitf729fe0a4a07f77cf2a60a88614a01b6bd649256 (patch)
treec9d6ec3dbd785e910055574e19a85daa63dc23d6 /sys/net/if_iso88025subr.c
parent32d9aeaf2d0cb3d17941506155a2e52a94e50550 (diff)
downloadFreeBSD-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/net/if_iso88025subr.c')
-rw-r--r--sys/net/if_iso88025subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index 2fd7747..4351db2 100644
--- a/sys/net/if_iso88025subr.c
+++ b/sys/net/if_iso88025subr.c
@@ -102,7 +102,7 @@ iso88025_ifattach(struct ifnet *ifp)
if (ifp->if_mtu == 0)
ifp->if_mtu = ISO88025_DEFAULT_MTU;
- ifa = ifnet_addrs[ifp->if_index - 1];
+ ifa = ifaddr_byindex(ifp->if_index);
if (ifa == 0) {
printf("iso88025_ifattach: no lladdr!\n");
return;
OpenPOWER on IntegriCloud