1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 20:15:07 +00:00

Kernel: Use Userspace<T> for the bind syscall, and implementation

This commit is contained in:
Brian Gianforcaro 2020-08-09 15:13:43 -07:00 committed by Andreas Kling
parent 2bac7190c8
commit 02660b5d60
7 changed files with 7 additions and 7 deletions

View file

@ -91,7 +91,7 @@ void LocalSocket::get_peer_address(sockaddr* address, socklen_t* address_size)
get_local_address(address, address_size);
}
KResult LocalSocket::bind(const sockaddr* user_address, socklen_t address_size)
KResult LocalSocket::bind(Userspace<const sockaddr*> user_address, socklen_t address_size)
{
ASSERT(setup_state() == SetupState::Unstarted);
if (address_size != sizeof(sockaddr_un))