Initial NetBSD port

This commit is contained in:
Tom Ivar Helbekkmo 2018-04-29 10:07:52 +02:00
parent c8441b106a
commit c8f4fdc713
6 changed files with 26 additions and 9 deletions

View file

@ -369,7 +369,7 @@ static wchar_t *get_usb_string(libusb_device_handle *dev, uint8_t idx)
inbytes = len-2;
outptr = (char*) wbuf;
outbytes = sizeof(wbuf);
res = iconv(ic, &inptr, &inbytes, &outptr, &outbytes);
res = iconv(ic, (const char ** restrict)&inptr, &inbytes, &outptr, &outbytes);
if (res == (size_t)-1) {
LOG("iconv() failed\n");
goto err;