1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-25 18:57:11 +02:00

tools/lib/atusb-common.c (atusb_interrupt_wait): fix embarrassing build failure

This commit is contained in:
Werner Almesberger 2013-09-28 14:44:00 -03:00
parent bf067b3e73
commit 4690466a53

View File

@ -221,7 +221,7 @@ int atusb_interrupt_wait(void *handle, int timeout_ms)
return 0; return 0;
res = usb_bulk_read(dsc->dev, 1, res = usb_bulk_read(dsc->dev, 1,
(char *) &buf, sizeof(buf), timeout_ms < 0 : 0 : timeout_ms); (char *) &buf, sizeof(buf), timeout_ms < 0 ? 0 : timeout_ms);
if (res == -ETIMEDOUT) if (res == -ETIMEDOUT)
return 0; return 0;
if (res < 0) { if (res < 0) {