blob: b583569d86e046db3720afdfccfbc1186191290d [file] [log] [blame]
diff -u native.old/linux.c native/linux.c
--- native.old/linux.c 2005-04-17 21:43:13.491277758 +0300
+++ native/linux.c 2005-04-17 21:43:21.986973753 +0300
@@ -226,11 +226,11 @@
} else
buffer = NULL;
- ctrl.requesttype = requestType;
- ctrl.request = request;
- ctrl.value = value;
- ctrl.index = index;
- ctrl.length = len & 0xffff;
+ ctrl.bRequestType = requestType;
+ ctrl.bRequest = request;
+ ctrl.wValue = value;
+ ctrl.wIndex = index;
+ ctrl.wLength = len & 0xffff;
ctrl.timeout = TIMEOUT; // USB should t/o after 5 seconds.
ctrl.data = buffer + off;
if ((retval = ioctl (fd, USBDEVFS_CONTROL, &ctrl)) < 0)