diff options
author | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2000-05-23 20:41:01 +0000 |
commit | d93fbc99166053b75c2eeb69b5cb603cfaf79ec0 (patch) | |
tree | a4f130be4544ce7cfe4afa8c93f996b871433cb8 /sys/dev/usb/usbdivar.h | |
parent | e814d2a0db522b0f163eef55a56d05aa226951f3 (diff) | |
download | FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.zip FreeBSD-src-d93fbc99166053b75c2eeb69b5cb603cfaf79ec0.tar.gz |
Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.
Suggested by: phk
Reviewed by: phk
Approved by: mdodd
Diffstat (limited to 'sys/dev/usb/usbdivar.h')
-rw-r--r-- | sys/dev/usb/usbdivar.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h index 9d8ca8a..ca1fae6 100644 --- a/sys/dev/usb/usbdivar.h +++ b/sys/dev/usb/usbdivar.h @@ -146,7 +146,7 @@ struct usbd_interface { int altindex; struct usbd_endpoint *endpoints; void *priv; - LIST_HEAD(, usbd_pipe) pipes; + LIST_HEAD(, struct usbd_pipe) pipes; }; struct usbd_pipe { @@ -155,8 +155,8 @@ struct usbd_pipe { struct usbd_endpoint *endpoint; int refcnt; char running; - SIMPLEQ_HEAD(, usbd_xfer) queue; - LIST_ENTRY(usbd_pipe) next; + SIMPLEQ_HEAD(, struct usbd_xfer) queue; + LIST_ENTRY(struct usbd_pipe) next; usbd_xfer_handle intrxfer; /* used for repeating requests */ char repeat; @@ -194,7 +194,7 @@ struct usbd_xfer { #define URQ_AUTO_DMABUF 0x10 #define URQ_DEV_DMABUF 0x20 - SIMPLEQ_ENTRY(usbd_xfer) next; + SIMPLEQ_ENTRY(struct usbd_xfer) next; void *hcpriv; /* private use by the HC driver */ int hcprivint; |