Two more OpenBSD fixes.

This commit is contained in:
augustss 2000-03-30 08:53:30 +00:00
parent 9f9ade2b2c
commit 4fe9287221
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_cue.c,v 1.19 2000/03/30 00:18:17 augustss Exp $ */
/* $NetBSD: if_cue.c,v 1.20 2000/03/30 08:53:30 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
@ -718,7 +718,7 @@ USB_ATTACH(cue)
ifp->if_start = cue_start;
ifp->if_watchdog = cue_watchdog;
#if defined(__OpenBSD__)
ifp->if_snd.ifq_maxlen = IFQ_MAXLEN
ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
#endif
strncpy(ifp->if_xname, USBDEVNAME(sc->cue_dev), IFNAMSIZ);

View File

@ -1,4 +1,4 @@
/* $NetBSD: usb_port.h,v 1.27 2000/03/30 00:18:18 augustss Exp $ */
/* $NetBSD: usb_port.h,v 1.28 2000/03/30 08:53:31 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_port.h,v 1.21 1999/11/17 22:33:47 n_hibma Exp $ */
/*
@ -199,8 +199,11 @@ __CONCAT(dname,_detach)(self, flags) \
#define Ether_ifattach(ifp, eaddr) ether_ifattach(ifp)
#define if_deactivate(x)
#define IF_INPUT(ifp, m) do { \
struct ether_header *eh; \
\
eh = mtod(m, struct ether_header *); \
m_adj(m, sizeof(struct ether_header)); \
ether_input((ifp), mtod((m), struct ether_header *), (m)); \
ether_input((ifp), (eh), (m)); \
} while (0)
#define usbpoll usbselect