mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 15:35:07 +00:00
AK: Make Vector use size_t for its size and capacity
This commit is contained in:
parent
9c6f7d3e7d
commit
ceec1a7d38
94 changed files with 323 additions and 317 deletions
|
@ -128,7 +128,7 @@ KResult IPv4Socket::bind(const sockaddr* user_address, socklen_t address_size)
|
|||
return protocol_bind();
|
||||
}
|
||||
|
||||
KResult IPv4Socket::listen(int backlog)
|
||||
KResult IPv4Socket::listen(size_t backlog)
|
||||
{
|
||||
int rc = allocate_local_port_if_needed();
|
||||
if (rc < 0)
|
||||
|
@ -138,7 +138,7 @@ KResult IPv4Socket::listen(int backlog)
|
|||
m_role = Role::Listener;
|
||||
|
||||
#ifdef IPV4_SOCKET_DEBUG
|
||||
kprintf("IPv4Socket{%p} listening with backlog=%d\n", this, backlog);
|
||||
kprintf("IPv4Socket{%p} listening with backlog=%zu\n", this, backlog);
|
||||
#endif
|
||||
|
||||
return protocol_listen();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue