mirror of
https://github.com/curl/curl.git
synced 2026-08-25 13:03:37 +03:00
build: fix -Wformat-signedness by adjusting printf masks
- sync printf masks with the passed value. - fix a couple of casts. Cherry-picked from #20848 Closes #21335
This commit is contained in:
parent
54cc65595d
commit
548c16a824
56 changed files with 127 additions and 127 deletions
|
|
@ -155,7 +155,7 @@ static void logprotocol(mqttdir dir,
|
|||
}
|
||||
fprintf(output, "%s %s %x %s\n",
|
||||
dir == FROM_CLIENT ? "client" : "server",
|
||||
prefix, (int)remlen, data);
|
||||
prefix, (unsigned int)remlen, data);
|
||||
}
|
||||
|
||||
/* return 0 on success */
|
||||
|
|
|
|||
|
|
@ -1130,7 +1130,7 @@ static int sws_get_request(curl_socket_t sock, struct sws_httprequest *req)
|
|||
sizeof(req->reqbuf) - 1 - req->offset);
|
||||
if(got > 0) {
|
||||
req->offset += got;
|
||||
logmsg("Got %zu bytes from client", got);
|
||||
logmsg("Got %zd bytes from client", got);
|
||||
}
|
||||
|
||||
if((got == -1) &&
|
||||
|
|
|
|||
|
|
@ -436,7 +436,7 @@ static LRESULT CALLBACK main_window_proc(HWND hwnd, UINT uMsg,
|
|||
break;
|
||||
}
|
||||
if(signum) {
|
||||
logmsg("main_window_proc: %d -> %d", uMsg, signum);
|
||||
logmsg("main_window_proc: %u -> %d", uMsg, signum);
|
||||
raise(signum);
|
||||
}
|
||||
}
|
||||
|
|
@ -671,7 +671,7 @@ int bind_unix_socket(curl_socket_t sock, const char *unix_socket,
|
|||
memset(sau, 0, sizeof(struct sockaddr_un));
|
||||
sau->sun_family = AF_UNIX;
|
||||
if(len >= sizeof(sau->sun_path) - 1) {
|
||||
logmsg("Too long unix socket domain path (%zd)", len);
|
||||
logmsg("Too long unix socket domain path (%zu)", len);
|
||||
return -1;
|
||||
}
|
||||
curlx_strcopy(sau->sun_path, sizeof(sau->sun_path), unix_socket, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue