summaryrefslogtreecommitdiffstats
path: root/sys/compat
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/compat
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/compat')
-rw-r--r--sys/compat/linux/linux_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 3b14eb2..2079fcd 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -1385,7 +1385,7 @@ linux_ioctl_socket(struct proc *p, struct linux_ioctl_args *args)
* structure, as Linux interface names are all different.
*/
for (ifn = 0; ifn < if_index; ifn++) {
- ifp = ifnet_addrs[ifn]->ifa_ifp;
+ ifp = ifnet_byindex(ifn);
if (ifp->if_type == IFT_ETHER) {
ifa = TAILQ_FIRST(&ifp->if_addrhead);
while (ifa) {
OpenPOWER on IntegriCloud