host: fix various compiler warnings

This commit is contained in:
Harald Welte
2017-05-10 22:49:02 +02:00
parent d03960525e
commit 9f38dddfcc
3 changed files with 10 additions and 9 deletions

View File

@@ -52,7 +52,8 @@ static int find_devices(void)
perror("Cannot open device");
continue;
}
rc = libusb_get_string_descriptor_ascii(dev_handle, m->string_idx, strbuf, sizeof(strbuf));
rc = libusb_get_string_descriptor_ascii(dev_handle, m->string_idx,
(unsigned char *)strbuf, sizeof(strbuf));
libusb_close(dev_handle);
if (rc < 0) {
printf("\n");