mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
update for new libusb_open API
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user