diff options
author | marcel <marcel@FreeBSD.org> | 2001-09-08 04:20:45 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2001-09-08 04:20:45 +0000 |
commit | ce430d113cb4d3f0a2fc0922a453d8742dc2a086 (patch) | |
tree | 065c84e0c9bbf6bb864f1f2ee334e83629176648 | |
parent | 64b1bd55953b0201d1eff49a788c5da3c9e82ced (diff) | |
download | FreeBSD-src-ce430d113cb4d3f0a2fc0922a453d8742dc2a086.zip FreeBSD-src-ce430d113cb4d3f0a2fc0922a453d8742dc2a086.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.
Forgotten by: jlemon
-rw-r--r-- | sys/alpha/osf1/osf1_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/alpha/osf1/osf1_ioctl.c b/sys/alpha/osf1/osf1_ioctl.c index e96d565..5d8916c 100644 --- a/sys/alpha/osf1/osf1_ioctl.c +++ b/sys/alpha/osf1/osf1_ioctl.c @@ -202,7 +202,7 @@ osf1_ioctl_i(p, uap, cmd, dir, len) * structure, as DU interface names are all different. */ for (ifn = 0; ifn < if_index; ifn++) { - ifp = ifnet_addrs[ifn]->ifa_ifp; /* pointer to interface */ + ifp = ifnet_byindex(ifn); /* Only look at ether interfaces, exclude alteon nics * because osf/1 doesn't know about most of them. */ |