diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-04-01 23:28:32 +0100 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-04-01 23:30:49 +0100 |
commit | d9b2ce2894ed43d34de6850f2dac50ccabf1db55 (patch) | |
tree | 6172f22731311cb4936d63d4802fc88d6b54f21d /libusb/core.c | |
parent | 8d809854e2b19c2b7c27ab05e5d76b34e2a5cead (diff) | |
download | libusb-d9b2ce2894ed43d34de6850f2dac50ccabf1db55.tar.gz |
Constify some return data
Make it clear that apps should not mess with these structures
Diffstat (limited to 'libusb/core.c')
-rw-r--r-- | libusb/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/core.c b/libusb/core.c index a4c01ba..f90ea06 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -424,7 +424,7 @@ API_EXPORTED struct libusb_device_handle *libusb_open_device_with_vid_pid( return NULL; while ((dev = devs[i++]) != NULL) { - struct libusb_device_descriptor *desc = + const struct libusb_device_descriptor *desc = libusb_get_device_descriptor(dev); if (desc->idVendor == vendor_id && desc->idProduct == product_id) { found = dev; |