summaryrefslogtreecommitdiffstats
path: root/sys/dev/ex
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/dev/ex
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/dev/ex')
-rw-r--r--sys/dev/ex/if_ex.c9
1 files changed, 6 insertions, 3 deletions
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:
OpenPOWER on IntegriCloud