Date: Thu, 16 Jul 2009 19:49:25 GMT From: Sylvestre Gallon <syl@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 166174 for review Message-ID: <200907161949.n6GJnP8f022022@repoman.freebsd.org>
index | next in thread | raw e-mail
http://perforce.freebsd.org/chv.cgi?CH=166174 Change 166174 by syl@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); }help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907161949.n6GJnP8f022022>
