mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
Kernel: Remove the Socket::{protocol,}connect ShouldBlock argument
This argument is always set to description.is_blocking(), but description is also given as a separate argument, so there's no point to piping it through separately.
This commit is contained in:
parent
2aaaee6744
commit
364f6a9bf0
10 changed files with 13 additions and 18 deletions
|
@ -138,7 +138,7 @@ ErrorOr<void> IPv4Socket::listen(size_t backlog)
|
|||
return protocol_listen(result.did_allocate);
|
||||
}
|
||||
|
||||
ErrorOr<void> IPv4Socket::connect(OpenFileDescription& description, Userspace<sockaddr const*> address, socklen_t address_size, ShouldBlock should_block)
|
||||
ErrorOr<void> IPv4Socket::connect(OpenFileDescription& description, Userspace<sockaddr const*> address, socklen_t address_size)
|
||||
{
|
||||
if (address_size != sizeof(sockaddr_in))
|
||||
return set_so_error(EINVAL);
|
||||
|
@ -158,7 +158,7 @@ ErrorOr<void> IPv4Socket::connect(OpenFileDescription& description, Userspace<so
|
|||
m_peer_address = IPv4Address { 127, 0, 0, 1 };
|
||||
m_peer_port = ntohs(safe_address.sin_port);
|
||||
|
||||
return protocol_connect(description, should_block);
|
||||
return protocol_connect(description);
|
||||
}
|
||||
|
||||
bool IPv4Socket::can_read(OpenFileDescription const&, u64) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue