Revision 021730f7
b/usb-linux.c | ||
---|---|---|
344 | 344 |
for (interface = 0; interface < nb_interfaces; interface++) { |
345 | 345 |
ctrl.ioctl_code = USBDEVFS_DISCONNECT; |
346 | 346 |
ctrl.ifno = interface; |
347 |
ctrl.data = 0; |
|
347 | 348 |
ret = ioctl(dev->fd, USBDEVFS_IOCTL, &ctrl); |
348 | 349 |
if (ret < 0 && errno != ENODATA) { |
349 | 350 |
perror("USBDEVFS_DISCONNECT"); |
Also available in: Unified diff