diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-09-14 02:26:45 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-09-14 02:26:45 +0000 |
commit | ae52569d5a895f712b0ac79a12c16e497a31c1e9 (patch) | |
tree | 7af609e994f216668295a908f0502f009a3f17de /sys | |
parent | 6bc74025af1b60f264fb670ae246373ee0566291 (diff) | |
download | FreeBSD-src-ae52569d5a895f712b0ac79a12c16e497a31c1e9.zip FreeBSD-src-ae52569d5a895f712b0ac79a12c16e497a31c1e9.tar.gz |
Cosmetic cleanups.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if_iso88025subr.c | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c index 2b4e220..6849e90 100644 --- a/sys/net/if_iso88025subr.c +++ b/sys/net/if_iso88025subr.c @@ -175,25 +175,27 @@ iso88025_ioctl(struct ifnet *ifp, int command, caddr_t data) /* * XXX - This code is probably wrong */ - case AF_IPX: - { - struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr); - struct arpcom *ac = IFP2AC(ifp); - - if (ipx_nullhost(*ina)) - ina->x_host = *(union ipx_host *)ac->ac_enaddr; - else { - bcopy((caddr_t) ina->x_host.c_host, - (caddr_t) ac->ac_enaddr, - ISO88025_ADDR_LEN); - } - - /* - * Set new address - */ - ifp->if_init(ifp->if_softc); - break; - } + case AF_IPX: { + struct ipx_addr *ina; + struct arpcom *ac; + + ina = &(IA_SIPX(ifa)->sipx_addr); + ac = IFP2AC(ifp); + + if (ipx_nullhost(*ina)) + ina->x_host = *(union ipx_host *) + ac->ac_enaddr; + else + bcopy((caddr_t) ina->x_host.c_host, + (caddr_t) ac->ac_enaddr, + ISO88025_ADDR_LEN); + + /* + * Set new address + */ + ifp->if_init(ifp->if_softc); + } + break; #endif /* IPX */ default: ifp->if_init(ifp->if_softc); |