diff options
author | alfred <alfred@FreeBSD.org> | 2002-02-20 20:47:21 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-02-20 20:47:21 +0000 |
commit | 7b6d78ef23b57da21a82b7f0c48134c638fc57e6 (patch) | |
tree | 28c44908c5eec0bbedb76f3c63bb323089c7df9b /lib/libusbhid/descr.c | |
parent | 48024c8054d4ccb77bc5d06f954c1d261318798e (diff) | |
download | FreeBSD-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.c | 4 |
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 |