This commit is contained in:
Viktor Szakats 2026-03-08 20:38:56 +01:00
parent a5e3bb85ce
commit abf8d0315d
No known key found for this signature in database
5 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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 */