mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-23 02:22:37 +00:00
Fix format for 64bit compilers
This commit is contained in:
parent
4851eaf536
commit
bc538f8bf3
@ -339,7 +339,7 @@ strbuf strbuf_append_sockaddr(strbuf sb, const struct sockaddr *addr, socklen_t
|
|||||||
ntohs(addr_in->sin_port)
|
ntohs(addr_in->sin_port)
|
||||||
);
|
);
|
||||||
if (addrlen != sizeof(struct sockaddr_in))
|
if (addrlen != sizeof(struct sockaddr_in))
|
||||||
strbuf_sprintf(sb, " (addrlen=%d should be %d)", (int)addrlen, sizeof(struct sockaddr_in));
|
strbuf_sprintf(sb, " (addrlen=%d should be %zd)", (int)addrlen, sizeof(struct sockaddr_in));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user