update for new libusb_open API

This commit is contained in:
Daniel Drake 2008-06-15 10:54:07 -05:00
parent aa7c8ae81e
commit e1691a29dd

View file

@ -45,10 +45,10 @@ API_EXPORTED int fp_async_dev_open(struct fp_dscv_dev *ddev, fp_dev_open_cb cb,
int r; int r;
fp_dbg(""); fp_dbg("");
udevh = libusb_open(ddev->udev); r = libusb_open(ddev->udev, &udevh);
if (!udevh) { if (r < 0) {
fp_err("usb_open failed"); fp_err("usb_open failed, error %d", r);
return -EIO; return r;
} }
dev = g_malloc0(sizeof(*dev)); dev = g_malloc0(sizeof(*dev));