summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2008-04-01 23:28:32 +0100
committerDaniel Drake <dsd@gentoo.org>2008-04-01 23:30:49 +0100
commitd9b2ce2894ed43d34de6850f2dac50ccabf1db55 (patch)
tree6172f22731311cb4936d63d4802fc88d6b54f21d /examples
parent8d809854e2b19c2b7c27ab05e5d76b34e2a5cead (diff)
downloadlibusb-d9b2ce2894ed43d34de6850f2dac50ccabf1db55.tar.gz
Constify some return data
Make it clear that apps should not mess with these structures
Diffstat (limited to 'examples')
-rw-r--r--examples/lsusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/lsusb.c b/examples/lsusb.c
index ca39bd9..f196c85 100644
--- a/examples/lsusb.c
+++ b/examples/lsusb.c
@@ -27,7 +27,7 @@ void print_devs(libusb_device **devs)
int i = 0;
while ((dev = devs[i++]) != NULL) {
- struct libusb_device_descriptor *desc =
+ const struct libusb_device_descriptor *desc =
libusb_get_device_descriptor(dev);
printf("%04x:%04x\n", desc->idVendor, desc->idProduct);
}