From fe212d7f7f628783f75fd9c1f1944e8a94a9db1e Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 1 Mar 2026 11:24:50 +0100 Subject: [PATCH] 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)); | ^~~~~~~~~~~~~~~~~~~~~~~~ --- client/deps/mqtt/win32_sockets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/deps/mqtt/win32_sockets.h b/client/deps/mqtt/win32_sockets.h index 4775bb851..974211365 100644 --- a/client/deps/mqtt/win32_sockets.h +++ b/client/deps/mqtt/win32_sockets.h @@ -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; }