mirror of
https://github.com/curl/curl.git
synced 2026-05-14 00:46:24 +03:00
fixes
This commit is contained in:
parent
a5e3bb85ce
commit
abf8d0315d
5 changed files with 6 additions and 6 deletions
|
|
@ -182,7 +182,7 @@ CURLcode ws_recv_pong(CURL *curl, const char *expected_payload)
|
|||
|
||||
if(!(meta->flags & CURLWS_PONG)) {
|
||||
curl_mfprintf(stderr, "recv_pong: wrong frame, got %zu bytes rflags %x\n",
|
||||
rlen, meta->flags);
|
||||
rlen, (unsigned int)meta->flags);
|
||||
return CURLE_RECV_ERROR;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -388,7 +388,7 @@ create_resp(int qid, const struct sockaddr *addr, curl_socklen_t addrlen,
|
|||
for(a = 0; a < ancount_a; a++) {
|
||||
const unsigned char *store = ipv4_pref;
|
||||
add_answer(bytes, &i, store, sizeof(ipv4_pref), QTYPE_A);
|
||||
logmsg("[%d] response A (%x) '%s'", qid, QTYPE_A,
|
||||
logmsg("[%d] response A (%x) '%s'", qid, (unsigned int)QTYPE_A,
|
||||
curlx_inet_ntop(AF_INET, store, addrbuf, sizeof(addrbuf)));
|
||||
}
|
||||
if(!ancount_a)
|
||||
|
|
@ -400,7 +400,7 @@ create_resp(int qid, const struct sockaddr *addr, curl_socklen_t addrlen,
|
|||
for(a = 0; a < ancount_aaaa; a++) {
|
||||
const unsigned char *store = ipv6_pref;
|
||||
add_answer(bytes, &i, store, sizeof(ipv6_pref), QTYPE_AAAA);
|
||||
logmsg("[%d] response AAAA (%x) '%s'", qid, QTYPE_AAAA,
|
||||
logmsg("[%d] response AAAA (%x) '%s'", qid, (unsigned int)QTYPE_AAAA,
|
||||
curlx_inet_ntop(AF_INET6, store, addrbuf, sizeof(addrbuf)));
|
||||
}
|
||||
if(!ancount_aaaa)
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ static curl_socket_t mqttit(curl_socket_t fd)
|
|||
/* check the length of the payload */
|
||||
if((ssize_t)payload_len != (rc - 12)) {
|
||||
logmsg("Payload length mismatch, expected %zx got %zx",
|
||||
rc - 12, payload_len);
|
||||
(size_t)(rc - 12), payload_len);
|
||||
goto end;
|
||||
}
|
||||
/* check the length of the client ID */
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ static CURLcode test_tool1621(const char *arg)
|
|||
const char *url = tests[i].input;
|
||||
char *stripped = stripcredentials(url);
|
||||
const char *strippedstr = stripped ? stripped : "(null)";
|
||||
curl_mprintf("Test %u got input \"%s\", output: \"%s\", "
|
||||
curl_mprintf("Test %d got input \"%s\", output: \"%s\", "
|
||||
"expected: \"%s\"\n",
|
||||
i, tests[i].input, strippedstr, tests[i].output);
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ static CURLcode test_unit1323(const char *arg)
|
|||
for(i = 0; i < CURL_ARRAYSIZE(tests); i++) {
|
||||
timediff_t result = curlx_timediff_ms(tests[i].first, tests[i].second);
|
||||
if(result != tests[i].result) {
|
||||
curl_mprintf("%ld.%06u to %ld.%06u got %" FMT_TIMEDIFF_T
|
||||
curl_mprintf("%ld.%06d to %ld.%06d got %" FMT_TIMEDIFF_T
|
||||
", but expected %" FMT_TIMEDIFF_T "\n",
|
||||
(long)tests[i].first.tv_sec,
|
||||
tests[i].first.tv_usec,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue