mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
Fix mqtt compilation in Proxspace with Qt6 and cmake
D:/a/proxmark3/proxmark3/client/deps/mqtt/win32_sockets.h: In function 'open_nb_socket':
D:/a/proxmark3/proxmark3/client/deps/mqtt/win32_sockets.h:35:25: error: format '%s' expects argument of type 'char *', but argument 3 has type 'WCHAR *' {aka 'short unsigned int *'} [-Werror=format=]
35 | fprintf(stderr, "error: getaddrinfo: %s", gai_strerror(rv));
| ^~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
@@ -32,7 +32,7 @@ mqtt_pal_socket_handle open_nb_socket(const char *addr, const char *port) {
|
||||
// get address information
|
||||
int rv = getaddrinfo(addr, port, &hints, &servinfo);
|
||||
if (rv != 0) {
|
||||
fprintf(stderr, "error: getaddrinfo: %s", gai_strerror(rv));
|
||||
fprintf(stderr, "error: getaddrinfo: %s", gai_strerrorA(rv));
|
||||
WSACleanup();
|
||||
return INVALID_SOCKET;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user