Deleted Added
full compact
descr_compat.c (187994) descr_compat.c (188945)
1/*
2 * Copyright (c) 1999 Lennart Augustsson <augustss@netbsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27/*
28 * This file contains fallback-compatibility code for the old FreeBSD
29 * USB stack.
30 */
1/*
2 * Copyright (c) 1999 Lennart Augustsson <augustss@netbsd.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27/*
28 * This file contains fallback-compatibility code for the old FreeBSD
29 * USB stack.
30 */
31#ifdef HID_COMPAT7
31
32#include <sys/cdefs.h>
32
33#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/lib/libusbhid/descr_compat.c 187994 2009-02-02 00:49:39Z alfred $");
34__FBSDID("$FreeBSD: head/lib/libusbhid/descr_compat.c 188945 2009-02-23 18:36:54Z thompsa $");
34
35#include <sys/types.h>
36
37#include <assert.h>
38#include <errno.h>
39#include <stdlib.h>
40#include <string.h>
41#include <unistd.h>

--- 28 unchanged lines hidden (view full) ---

70 struct usb_ctl_report_desc rep;
71
72 rep.ucrd_size = 0;
73 if (ioctl(fd, USB_GET_REPORT_DESC, &rep) < 0)
74 return (NULL);
75
76 return (hid_use_report_desc(rep.ucrd_data, (unsigned int)rep.ucrd_size));
77}
35
36#include <sys/types.h>
37
38#include <assert.h>
39#include <errno.h>
40#include <stdlib.h>
41#include <string.h>
42#include <unistd.h>

--- 28 unchanged lines hidden (view full) ---

71 struct usb_ctl_report_desc rep;
72
73 rep.ucrd_size = 0;
74 if (ioctl(fd, USB_GET_REPORT_DESC, &rep) < 0)
75 return (NULL);
76
77 return (hid_use_report_desc(rep.ucrd_data, (unsigned int)rep.ucrd_size));
78}
79#endif /* HID_COMPAT7 */