Changes in uspace/lib/usbdev/src/recognise.c [b7fd2a0:1569a9b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/recognise.c
rb7fd2a0 r1569a9b 60 60 * @return Error code. 61 61 */ 62 static errno_t usb_add_match_id(match_id_list_t *matches, int score,62 static int usb_add_match_id(match_id_list_t *matches, int score, 63 63 const char *match_str) 64 64 { … … 89 89 int __rc = asprintf(&str, format, ##__VA_ARGS__); \ 90 90 if (__rc >= 0) { \ 91 errno_t __rc = usb_add_match_id((match_ids), (score), str); \91 int __rc = usb_add_match_id((match_ids), (score), str); \ 92 92 if (__rc != EOK) { \ 93 93 free(str); \ … … 108 108 * @retval ENOENT Device class is not "use interface". 109 109 */ 110 errno_t usb_device_create_match_ids_from_interface(110 int usb_device_create_match_ids_from_interface( 111 111 const usb_standard_device_descriptor_t *desc_device, 112 112 const usb_standard_interface_descriptor_t *desc_interface, … … 220 220 * @return Error code. 221 221 */ 222 errno_t usb_device_create_match_ids_from_device_descriptor(222 int usb_device_create_match_ids_from_device_descriptor( 223 223 const usb_standard_device_descriptor_t *device_descriptor, 224 224 match_id_list_t *matches) … … 264 264 * @return Error code. 265 265 */ 266 errno_t usb_device_create_match_ids(usb_pipe_t *ctrl_pipe,266 int usb_device_create_match_ids(usb_pipe_t *ctrl_pipe, 267 267 match_id_list_t *matches) 268 268 { 269 269 assert(ctrl_pipe); 270 errno_t rc;270 int rc; 271 271 /* 272 272 * Retrieve device descriptor and add matches from it.
Note:
See TracChangeset
for help on using the changeset viewer.