Package: libusb-dev Version: 2:0.1.12-9 Severity: wishlist Tags: upstream In the file /usr/include/usb.h, the prototypes for writing functions don't declare the buffer as const. This is problematic if strict const handling is requested from the compiler (as is always the case when writing C++). In particular, the prototypes:
int usb_bulk_write(usb_dev_handle *dev, int ep, char *bytes,
int size, int timeout);
int usb_interrupt_write(usb_dev_handle *dev, int ep, char *bytes,
int size, int timeout);
should instead be:
int usb_bulk_write(usb_dev_handle *dev, int ep, const char *bytes,
int size, int timeout);
int usb_interrupt_write(usb_dev_handle *dev, int ep, const char *bytes,
int size, int timeout);
At the moment I need to cast my const strings, which is ugly.
This is obviously a request to upstream (although I would be happy with
a debian-only patch if they aren't responsive), so please forward it to
them through whatever channel they prefer.
Thanks,
Bas
--
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://pcbcn10.phys.rug.nl/e-mail.html
signature.asc
Description: Digital signature

