summaryrefslogtreecommitdiff
path: root/lib/libusbhid/descr.c
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2002-05-02 20:12:08 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2002-05-02 20:12:08 +0000
commitf07d7c31ba96273b45789c7dc139aa7f7949c5b7 (patch)
treebc509479859adb833173f259e27a8359bc66a627 /lib/libusbhid/descr.c
parent587cdcf5ce16c5aed5152f0f3d18dd160f0b0298 (diff)
userland portion of prefixing usb structure members to avoid name clashes.
From NetBSD
Diffstat (limited to 'lib/libusbhid/descr.c')
-rw-r--r--lib/libusbhid/descr.c6
1 files changed, 3 insertions, 3 deletions
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