mirror of
https://github.com/Fishwaldo/open-zwave.git
synced 2025-07-09 22:49:10 +00:00
Initial NetBSD port
This commit is contained in:
parent
c8441b106a
commit
c8f4fdc713
6 changed files with 26 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue