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
This commit is contained in:
parent
64b1bd5595
commit
ce430d113c
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user