mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
st/p: Fix enum types in libusb usage
This commit is contained in:
parent
447b3550e8
commit
2b5fa2c57f
|
@ -134,7 +134,7 @@ p_libusb_get_string_descriptor(struct prober *p,
|
|||
int result = libusb_get_device_descriptor(usb_dev, &desc);
|
||||
if (result < 0) {
|
||||
P_ERROR(p, "libusb_get_device_descriptor failed: %s",
|
||||
p_libusb_error_to_string(result));
|
||||
p_libusb_error_to_string((enum libusb_error)result));
|
||||
return result;
|
||||
}
|
||||
uint8_t which = 0;
|
||||
|
@ -157,7 +157,7 @@ p_libusb_get_string_descriptor(struct prober *p,
|
|||
result = libusb_open(usb_dev, &dev_handle);
|
||||
if (result < 0) {
|
||||
P_ERROR(p, "libusb_open failed: %s",
|
||||
p_libusb_error_to_string(result));
|
||||
p_libusb_error_to_string((enum libusb_error)result));
|
||||
return result;
|
||||
}
|
||||
int string_length = libusb_get_string_descriptor_ascii(
|
||||
|
@ -178,7 +178,7 @@ p_libusb_can_open(struct prober *p, struct prober_device *pdev)
|
|||
result = libusb_open(usb_dev, &dev_handle);
|
||||
if (result < 0) {
|
||||
P_ERROR(p, "libusb_open failed: %s",
|
||||
p_libusb_error_to_string(result));
|
||||
p_libusb_error_to_string((enum libusb_error)result));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue