summaryrefslogtreecommitdiffstats
path: root/lib/libusbhid/descr.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-02-20 20:47:21 +0000
committeralfred <alfred@FreeBSD.org>2002-02-20 20:47:21 +0000
commit7b6d78ef23b57da21a82b7f0c48134c638fc57e6 (patch)
tree28c44908c5eec0bbedb76f3c63bb323089c7df9b /lib/libusbhid/descr.c
parent48024c8054d4ccb77bc5d06f954c1d261318798e (diff)
downloadFreeBSD-src-7b6d78ef23b57da21a82b7f0c48134c638fc57e6.zip
FreeBSD-src-7b6d78ef23b57da21a82b7f0c48134c638fc57e6.tar.gz
Prefix structure members to protect them against clashes with eg.
c++ keywords. This keeps us in sync with NetBSD because they actually committed my delta first. Ok'd by: lennard
Diffstat (limited to 'lib/libusbhid/descr.c')
-rw-r--r--lib/libusbhid/descr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusbhid/descr.c b/lib/libusbhid/descr.c
index 294cdff..11c031e 100644
--- a/lib/libusbhid/descr.c
+++ b/lib/libusbhid/descr.c
@@ -51,11 +51,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
OpenPOWER on IntegriCloud