mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-04 18:23:39 +00:00
Kernel: Use Userspace<T> for the bind syscall, and implementation
This commit is contained in:
parent
2bac7190c8
commit
02660b5d60
Notes:
sideshowbarker
2024-07-19 04:05:11 +09:00
Author: https://github.com/bgianfo
Commit: 02660b5d60
Pull-request: https://github.com/SerenityOS/serenity/pull/3062
Reviewed-by: https://github.com/awesomekling
7 changed files with 7 additions and 7 deletions
|
@ -98,7 +98,7 @@ void IPv4Socket::get_peer_address(sockaddr* address, socklen_t* address_size)
|
|||
*address_size = sizeof(sockaddr_in);
|
||||
}
|
||||
|
||||
KResult IPv4Socket::bind(const sockaddr* user_address, socklen_t address_size)
|
||||
KResult IPv4Socket::bind(Userspace<const sockaddr*> user_address, socklen_t address_size)
|
||||
{
|
||||
ASSERT(setup_state() == SetupState::Unstarted);
|
||||
if (address_size != sizeof(sockaddr_in))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue