diff options
author | mdodd <mdodd@FreeBSD.org> | 1999-08-18 22:14:24 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 1999-08-18 22:14:24 +0000 |
commit | 6fda6cde766cd7b3dfdc5ef969bdc0a4ddedb9a6 (patch) | |
tree | ba7e857301e62aea36e800d632e2f5a36e1b8182 /sys/dev | |
parent | a84a396b6b149988f12b678460517eae6b76638a (diff) | |
download | FreeBSD-src-6fda6cde766cd7b3dfdc5ef969bdc0a4ddedb9a6.zip FreeBSD-src-6fda6cde766cd7b3dfdc5ef969bdc0a4ddedb9a6.tar.gz |
Make these actually compile. I got a little delete happy pruning includes
and used 'command' instead of 'cmd' in a few cases. Also clear up some
unused variables.
Pointed out by: phk
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ep/if_ep.c | 9 | ||||
-rw-r--r-- | sys/dev/ex/if_ex.c | 9 | ||||
-rw-r--r-- | sys/dev/fe/if_fe.c | 6 | ||||
-rw-r--r-- | sys/dev/ie/if_ie.c | 7 | ||||
-rw-r--r-- | sys/dev/lnc/if_lnc.c | 7 | ||||
-rw-r--r-- | sys/dev/wl/if_wl.c | 5 |
6 files changed, 30 insertions, 13 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 6c9e5ec..22daafb 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -38,7 +38,7 @@ */ /* - * $Id: if_ep.c,v 1.81 1999/07/25 01:20:36 hosokawa Exp $ + * $Id: if_ep.c,v 1.82 1999/08/18 06:11:58 mdodd Exp $ * * Promiscuous mode added and interrupt logic slightly changed * to reduce the number of adapter failures. Transceiver select @@ -76,8 +76,12 @@ #include <sys/select.h> #endif +#include <net/ethernet.h> #include <net/if.h> +#include <netinet/in.h> +#include <netinet/if_ether.h> + #if NBPF > 0 #include <net/bpf.h> #endif @@ -1211,7 +1215,6 @@ epioctl(ifp, cmd, data) caddr_t data; { struct ep_softc *sc = ifp->if_softc; - struct ifreq *ifr = (struct ifreq *) data; int s, error = 0; s = splimp(); @@ -1220,7 +1223,7 @@ epioctl(ifp, cmd, data) case SIOCSIFADDR: case SIOCGIFADDR: case SIOCSIFMTU: - error = ether_ioctl(ifp, command, data); + error = ether_ioctl(ifp, cmd, data); break; case SIOCSIFFLAGS: diff --git a/sys/dev/ex/if_ex.c b/sys/dev/ex/if_ex.c index c9d0292..2aef5b2 100644 --- a/sys/dev/ex/if_ex.c +++ b/sys/dev/ex/if_ex.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ex.c,v 1.16 1999/07/06 19:22:47 des Exp $ + * $Id: if_ex.c,v 1.17 1999/08/18 06:11:58 mdodd Exp $ */ /* @@ -48,8 +48,12 @@ #include <sys/mbuf.h> #include <sys/socket.h> +#include <net/ethernet.h> #include <net/if.h> +#include <netinet/in.h> +#include <netinet/if_ether.h> + #if NBPF > 0 #include <net/bpf.h> #endif @@ -752,7 +756,6 @@ void ex_rx_intr(int unit) int ex_ioctl(register struct ifnet *ifp, u_long cmd, caddr_t data) { struct ex_softc *sc = &ex_sc[ifp->if_unit]; - struct ifreq *ifr = (struct ifreq *) data; int s, error = 0; DODEBUG(Start_End, printf("ex_ioctl%d: start ", ifp->if_unit);); @@ -763,7 +766,7 @@ int ex_ioctl(register struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCSIFADDR: case SIOCGIFADDR: case SIOCSIFMTU: - error = ether_ioctl(ifp, command, data); + error = ether_ioctl(ifp, cmd, data); break; case SIOCSIFFLAGS: diff --git a/sys/dev/fe/if_fe.c b/sys/dev/fe/if_fe.c index fcd6dab..5eb03c7 100644 --- a/sys/dev/fe/if_fe.c +++ b/sys/dev/fe/if_fe.c @@ -21,7 +21,7 @@ */ /* - * $Id: if_fe.c,v 1.51 1999/07/06 19:22:48 des Exp $ + * $Id: if_fe.c,v 1.52 1999/08/18 06:11:58 mdodd Exp $ * * Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards. * To be used with FreeBSD 3.x @@ -81,12 +81,16 @@ #include <sys/mbuf.h> #include <sys/socket.h> +#include <net/ethernet.h> #include <net/if.h> #include <net/if_dl.h> #include <net/if_mib.h> #include <net/if_media.h> #include <net/if_types.h> +#include <netinet/in.h> +#include <netinet/if_ether.h> + #if NBPF > 0 #include <net/bpf.h> #endif diff --git a/sys/dev/ie/if_ie.c b/sys/dev/ie/if_ie.c index 0cfa9dd..5c643ca 100644 --- a/sys/dev/ie/if_ie.c +++ b/sys/dev/ie/if_ie.c @@ -47,7 +47,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_ie.c,v 1.61 1999/07/06 19:22:49 des Exp $ + * $Id: if_ie.c,v 1.62 1999/08/18 06:11:59 mdodd Exp $ */ /* @@ -121,10 +121,14 @@ iomem and and with 0xffff. #include <sys/sockio.h> #include <sys/syslog.h> +#include <net/ethernet.h> #include <net/if.h> #include <net/if_types.h> #include <net/if_dl.h> +#include <netinet/in.h> +#include <netinet/if_ether.h> + #include "bpf.h" #include <machine/clock.h> @@ -2243,7 +2247,6 @@ ie_stop(int unit) static int ieioctl(struct ifnet *ifp, u_long command, caddr_t data) { - struct ifreq *ifr = (struct ifreq *) data; int s, error = 0; s = splimp(); diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index 2bdfce4..ee75beb 100644 --- a/sys/dev/lnc/if_lnc.c +++ b/sys/dev/lnc/if_lnc.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_lnc.c,v 1.62 1999/08/10 01:03:49 mdodd Exp $ + * $Id: if_lnc.c,v 1.63 1999/08/18 06:11:59 mdodd Exp $ */ /* @@ -80,10 +80,14 @@ #include <sys/socket.h> #include <sys/syslog.h> +#include <net/ethernet.h> #include <net/if.h> #include <net/if_dl.h> #include <net/if_types.h> +#include <netinet/in.h> +#include <netinet/if_ether.h> + #if NBPF > 0 #include <net/bpf.h> #endif @@ -1841,7 +1845,6 @@ lnc_ioctl(struct ifnet * ifp, u_long command, caddr_t data) { struct lnc_softc *sc = ifp->if_softc; - struct ifreq *ifr = (struct ifreq *) data; int s, error = 0; s = splimp(); diff --git a/sys/dev/wl/if_wl.c b/sys/dev/wl/if_wl.c index 93d4bd5..2c37caf 100644 --- a/sys/dev/wl/if_wl.c +++ b/sys/dev/wl/if_wl.c @@ -1,4 +1,4 @@ -/* $Id: if_wl.c,v 1.22 1999/07/06 19:22:54 des Exp $ */ +/* $Id: if_wl.c,v 1.23 1999/08/18 06:11:59 mdodd Exp $ */ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -204,6 +204,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include <sys/kernel.h> #include <sys/sysctl.h> +#include <net/ethernet.h> #include <net/if.h> #include <net/if_dl.h> @@ -1181,7 +1182,7 @@ wlioctl(struct ifnet *ifp, u_long cmd, caddr_t data) case SIOCSIFADDR: case SIOCGIFADDR: case SIOCSIFMTU: - error = ether_ioctl(ifp, command, data); + error = ether_ioctl(ifp, cmd, data); break; case SIOCSIFFLAGS: |