update for new libusb_open API
This commit is contained in:
parent
aa7c8ae81e
commit
e1691a29dd
1 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||||
|
|
Loading…
Reference in a new issue