diff --git a/Kernel/Process.h b/Kernel/Process.h index 1720b2b48bc..079a2a17175 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -294,7 +294,7 @@ public: int sys$bind(int sockfd, Userspace addr, socklen_t); int sys$listen(int sockfd, int backlog); int sys$accept(int sockfd, Userspace, Userspace); - int sys$connect(int sockfd, const sockaddr*, socklen_t); + int sys$connect(int sockfd, Userspace, socklen_t); int sys$shutdown(int sockfd, int how); ssize_t sys$sendto(const Syscall::SC_sendto_params*); ssize_t sys$recvfrom(const Syscall::SC_recvfrom_params*); diff --git a/Kernel/Syscalls/socket.cpp b/Kernel/Syscalls/socket.cpp index b7112a25b69..2068f3bdc3e 100644 --- a/Kernel/Syscalls/socket.cpp +++ b/Kernel/Syscalls/socket.cpp @@ -149,7 +149,7 @@ int Process::sys$accept(int accepting_socket_fd, Userspace user_addre return accepted_socket_fd; } -int Process::sys$connect(int sockfd, const sockaddr* user_address, socklen_t user_address_size) +int Process::sys$connect(int sockfd, Userspace user_address, socklen_t user_address_size) { if (!validate_read(user_address, user_address_size)) return -EFAULT;