summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_ep.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>1999-08-18 22:14:24 +0000
committermdodd <mdodd@FreeBSD.org>1999-08-18 22:14:24 +0000
commit6fda6cde766cd7b3dfdc5ef969bdc0a4ddedb9a6 (patch)
treeba7e857301e62aea36e800d632e2f5a36e1b8182 /sys/i386/isa/if_ep.c
parenta84a396b6b149988f12b678460517eae6b76638a (diff)
downloadFreeBSD-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/i386/isa/if_ep.c')
-rw-r--r--sys/i386/isa/if_ep.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/i386/isa/if_ep.c b/sys/i386/isa/if_ep.c
index 6c9e5ec..22daafb 100644
--- a/sys/i386/isa/if_ep.c
+++ b/sys/i386/isa/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:
OpenPOWER on IntegriCloud