From 63421e3fd61d0779a5cc4c11a59ea7318cdb8f72 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Wed, 7 May 2008 23:46:06 +0100 Subject: [PATCH] uru4000: fix compile against latest libusb --- libfprint/drivers/uru4000.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libfprint/drivers/uru4000.c b/libfprint/drivers/uru4000.c index 3169c92..dc6da21 100644 --- a/libfprint/drivers/uru4000.c +++ b/libfprint/drivers/uru4000.c @@ -1145,16 +1145,16 @@ static int dev_init(struct fp_img_dev *dev, unsigned long driver_data) ep = &iface_desc->endpoint[0]; if (ep->bEndpointAddress != EP_INTR - || (ep->bmAttributes & LIBUSB_ENDPOINT_TYPE_MASK) != - LIBUSB_ENDPOINT_TYPE_INTERRUPT) { + || (ep->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) != + LIBUSB_TRANSFER_TYPE_INTERRUPT) { fp_err("unrecognised interrupt endpoint"); return -ENODEV; } ep = &iface_desc->endpoint[1]; if (ep->bEndpointAddress != EP_DATA - || (ep->bmAttributes & LIBUSB_ENDPOINT_TYPE_MASK) != - LIBUSB_ENDPOINT_TYPE_BULK) { + || (ep->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) != + LIBUSB_TRANSFER_TYPE_BULK) { fp_err("unrecognised bulk endpoint"); return -ENODEV; }