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:
Philippe Teuwen
2026-03-01 11:27:44 +01:00
parent 7b8b759d95
commit fe212d7f7f
+1 -1
View File
@@ -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;
}