/[qemu]/qemu/usb-linux.c
ViewVC logotype

Diff of /qemu/usb-linux.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by bellard, Sun Nov 6 16:13:29 2005 UTC revision 1.3 by bellard, Sun Nov 13 21:53:15 2005 UTC
# Line 181  USBDevice *usb_host_device_open(const ch Line 181  USBDevice *usb_host_device_open(const ch
181    
182  #ifdef USBDEVFS_DISCONNECT  #ifdef USBDEVFS_DISCONNECT
183      /* earlier Linux 2.4 do not support that */      /* earlier Linux 2.4 do not support that */
184      ret = ioctl(fd, USBDEVFS_DISCONNECT);      {
185      if (ret < 0 && errno != ENODATA) {          struct usbdevfs_ioctl ctrl;
186          perror("USBDEVFS_DISCONNECT");          ctrl.ioctl_code = USBDEVFS_DISCONNECT;
187          goto fail;          ctrl.ifno = 0;
188            ret = ioctl(fd, USBDEVFS_IOCTL, &ctrl);
189            if (ret < 0 && errno != ENODATA) {
190                perror("USBDEVFS_DISCONNECT");
191                goto fail;
192            }
193      }      }
194  #endif  #endif
195    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26