svn commit: r301846 - head/lib/libusb
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Jun 13 01:33:03 UTC 2016
Author: hselasky
Date: Mon Jun 13 01:33:02 2016
New Revision: 301846
URL: https://svnweb.freebsd.org/changeset/base/301846
Log:
Fix compile warning.
Approved by: re (delphij)
MFC after: 1 week
Modified:
head/lib/libusb/libusb10_desc.c
Modified: head/lib/libusb/libusb10_desc.c
==============================================================================
--- head/lib/libusb/libusb10_desc.c Mon Jun 13 00:13:20 2016 (r301845)
+++ head/lib/libusb/libusb10_desc.c Mon Jun 13 01:33:02 2016 (r301846)
@@ -332,7 +332,7 @@ libusb_get_string_descriptor_ascii(libus
if (libusb20_dev_req_string_simple_sync(pdev, desc_index,
data, length) == 0)
- return (strlen(data));
+ return (strlen((char *)data));
return (LIBUSB_ERROR_OTHER);
}
More information about the svn-src-head
mailing list