diff options
Diffstat (limited to 'Userland/Libraries/LibC/sys/socket.cpp')
-rw-r--r-- | Userland/Libraries/LibC/sys/socket.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibC/sys/socket.cpp b/Userland/Libraries/LibC/sys/socket.cpp index 3e78ff1486..6cfedc0c0e 100644 --- a/Userland/Libraries/LibC/sys/socket.cpp +++ b/Userland/Libraries/LibC/sys/socket.cpp @@ -22,7 +22,7 @@ int socket(int domain, int type, int protocol) } // https://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html -int bind(int sockfd, const sockaddr* addr, socklen_t addrlen) +int bind(int sockfd, sockaddr const* addr, socklen_t addrlen) { int rc = syscall(SC_bind, sockfd, addr, addrlen); __RETURN_WITH_ERRNO(rc, rc, -1); @@ -49,7 +49,7 @@ int accept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) } // https://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html -int connect(int sockfd, const sockaddr* addr, socklen_t addrlen) +int connect(int sockfd, sockaddr const* addr, socklen_t addrlen) { int rc = syscall(SC_connect, sockfd, addr, addrlen); __RETURN_WITH_ERRNO(rc, rc, -1); @@ -70,7 +70,7 @@ ssize_t sendmsg(int sockfd, const struct msghdr* msg, int flags) } // https://pubs.opengroup.org/onlinepubs/9699919799/functions/sendto.html -ssize_t sendto(int sockfd, const void* data, size_t data_length, int flags, const struct sockaddr* addr, socklen_t addr_length) +ssize_t sendto(int sockfd, void const* data, size_t data_length, int flags, const struct sockaddr* addr, socklen_t addr_length) { iovec iov = { const_cast<void*>(data), data_length }; msghdr msg = { const_cast<struct sockaddr*>(addr), addr_length, &iov, 1, nullptr, 0, 0 }; @@ -78,7 +78,7 @@ ssize_t sendto(int sockfd, const void* data, size_t data_length, int flags, cons } // https://pubs.opengroup.org/onlinepubs/9699919799/functions/send.html -ssize_t send(int sockfd, const void* data, size_t data_length, int flags) +ssize_t send(int sockfd, void const* data, size_t data_length, int flags) { return sendto(sockfd, data, data_length, flags, nullptr, 0); } @@ -124,7 +124,7 @@ int getsockopt(int sockfd, int level, int option, void* value, socklen_t* value_ } // https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -int setsockopt(int sockfd, int level, int option, const void* value, socklen_t value_size) +int setsockopt(int sockfd, int level, int option, void const* value, socklen_t value_size) { Syscall::SC_setsockopt_params params { value, sockfd, level, option, value_size }; int rc = syscall(SC_setsockopt, ¶ms); |