PERFORCE change 166174 for review
Sylvestre Gallon
syl at FreeBSD.org
Thu Jul 16 19:49:27 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=166174
Change 166174 by syl at syl_pablo on 2009/07/16 19:48:31
Update code to allow this code to work with changes done by Hans Petter
Selasky on libusb-1.0.
These bugs has been spotted by Hans Petter Selasky.
Affected files ...
.. //depot/projects/soc2009/syl_usb/libusb-tests/transfers/test3/test3.c#9 edit
Differences ...
==== //depot/projects/soc2009/syl_usb/libusb-tests/transfers/test3/test3.c#9 (text+ko) ====
@@ -59,6 +59,8 @@
int ret= 0;
ret = libusb_bulk_transfer(devh, ep, buff, len, &transferred, timeout);
+ if (ret == 0)
+ ret = transferred;
return ret;
}
@@ -155,7 +157,7 @@
}
}
- if (!found) {
+ if (found == 0 && i != 0) {
printf("No USB stick found\n");
return (EXIT_FAILURE);
}
More information about the p4-projects
mailing list