diff options
author | Edgar Fuß <ef@math.uni-bonn.de> | 2023-01-17 16:56:42 +0100 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2023-01-18 14:05:37 +0100 |
commit | e263e32f20b903ed1d2c68fe3d80b55d7cfae52e (patch) | |
tree | 6310591c0ab09eba05096263755edf7343aa3286 | |
parent | 285b292d738eaabd9ff7e3bbec02a26736c7d50b (diff) | |
download | libusb-e263e32f20b903ed1d2c68fe3d80b55d7cfae52e.tar.gz |
netbsd: Add comment about udi_speed values matching libusb enum
Point out that only because NetBSD's #define's for USB speeds happen to
match the corresponding libusb enum values, it's OK to assign struct
usb_device_info's udi_speed field to the struct libusb_devices's speed
field.
References #1230
-rw-r--r-- | libusb/os/netbsd_usb.c | 2 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/netbsd_usb.c b/libusb/os/netbsd_usb.c index 74833f6..461fea7 100644 --- a/libusb/os/netbsd_usb.c +++ b/libusb/os/netbsd_usb.c @@ -148,7 +148,7 @@ netbsd_get_device_list(struct libusb_context * ctx, dev->bus_number = di.udi_bus; dev->device_address = di.udi_addr; - dev->speed = di.udi_speed; + dev->speed = di.udi_speed; /* NetBSD #define's happen to match libusb enum */ dpriv = usbi_get_device_priv(dev); strlcpy(dpriv->devnode, devnode, sizeof(devnode)); diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 8d7e70d..8454b80 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11762 +#define LIBUSB_NANO 11763 |