From f07d7c31ba96273b45789c7dc139aa7f7949c5b7 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 2 May 2002 20:12:08 +0000 Subject: userland portion of prefixing usb structure members to avoid name clashes. From NetBSD --- lib/libusbhid/descr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libusbhid/descr.c') diff --git a/lib/libusbhid/descr.c b/lib/libusbhid/descr.c index e6bb8c4f2a1..7366784338b 100644 --- a/lib/libusbhid/descr.c +++ b/lib/libusbhid/descr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: descr.c,v 1.1 2001/12/30 07:04:38 pvalchev Exp $ */ +/* $OpenBSD: descr.c,v 1.2 2002/05/02 20:12:07 nate Exp $ */ /* $NetBSD: descr.c,v 1.9 2000/09/24 02:13:24 augustss Exp $ */ /* @@ -45,11 +45,11 @@ hid_get_report_desc(int fd) { struct usb_ctl_report_desc rep; - rep.size = 0; + rep.ucrd_size = 0; if (ioctl(fd, USB_GET_REPORT_DESC, &rep) < 0) return (NULL); - return hid_use_report_desc(rep.data, (unsigned int)rep.size); + return hid_use_report_desc(rep.ucrd_data, (unsigned int)rep.ucrd_size); } report_desc_t -- cgit v1.2.3