fix(windows): use narrow gia_strerror variant
This should fix a CMake compilation error on Windows.
This commit is contained in:
1 parent
b06a67b950
commit
bfb46759d5
1 file changed
+1
-1
@@ -226,7 +226,7 @@ serial_port uart_open(const char *pcPortName, uint32_t speed, bool slient) {
|
|||||||
|
|
||||||
int s = getaddrinfo(addrStr, portStr, &info, &addr);
|
int s = getaddrinfo(addrStr, portStr, &info, &addr);
|
||||||
if (s != 0) {
|
if (s != 0) {
|
||||||
PrintAndLogEx(ERR, "error: getaddrinfo: %d: %s", s, gai_strerror(s));
|
PrintAndLogEx(ERR, "error: getaddrinfo: %d: %s", s, gai_strerrorA(s));
|
||||||
freeaddrinfo(addr);
|
freeaddrinfo(addr);
|
||||||
free(addrPortStr);
|
free(addrPortStr);
|
||||||
free(sp);
|
free(sp);
|
||||||
|
|||||||
Reference in new issue
Block a user