commit | 9f38dddfccbbfc731e3430bf1865d999256a2e31 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Wed May 10 22:49:02 2017 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Wed May 10 23:20:50 2017 +0200 |
tree | 85700191ce1e7e438fd525b04b1e17cbdae57410 | |
parent | d03960525e7e90cb3511ea1719f188d4e008fa91 [diff] [blame] |
host: fix various compiler warnings
diff --git a/host/simtrace2_usb.c b/host/simtrace2_usb.c index e4c5818..ad4b73b 100644 --- a/host/simtrace2_usb.c +++ b/host/simtrace2_usb.c
@@ -52,7 +52,8 @@ 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");