aboutsummaryrefslogtreecommitdiff
path: root/core/net/socket_freebsd.odin
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-04-19 14:32:59 +0200
committerGitHub <noreply@github.com>2025-04-19 14:32:59 +0200
commitbc86b503922781091ec3ae54c722bd8ff33c7205 (patch)
treea801dfa24bb9e7390b797ef7eba24369c569f38f /core/net/socket_freebsd.odin
parentd10cb91e3f35f6f8e35887d20cbaddfff66b267e (diff)
Replace default_tcp_options with constant (#5056)
Replace `default_tcp_options` with constant
Diffstat (limited to 'core/net/socket_freebsd.odin')
-rw-r--r--core/net/socket_freebsd.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/net/socket_freebsd.odin b/core/net/socket_freebsd.odin
index 4824b63dd..b510346ba 100644
--- a/core/net/socket_freebsd.odin
+++ b/core/net/socket_freebsd.odin
@@ -91,7 +91,7 @@ _create_socket :: proc(family: Address_Family, protocol: Socket_Protocol) -> (so
}
@(private)
-_dial_tcp_from_endpoint :: proc(endpoint: Endpoint, options := default_tcp_options) -> (socket: TCP_Socket, err: Network_Error) {
+_dial_tcp_from_endpoint :: proc(endpoint: Endpoint, options := DEFAULT_TCP_OPTIONS) -> (socket: TCP_Socket, err: Network_Error) {
if endpoint.port == 0 {
return 0, .Port_Required
}
@@ -154,7 +154,7 @@ _bound_endpoint :: proc(sock: Any_Socket) -> (ep: Endpoint, err: Listen_Error) {
}
@(private)
-_accept_tcp :: proc(sock: TCP_Socket, options := default_tcp_options) -> (client: TCP_Socket, source: Endpoint, err: Accept_Error) {
+_accept_tcp :: proc(sock: TCP_Socket, options := DEFAULT_TCP_OPTIONS) -> (client: TCP_Socket, source: Endpoint, err: Accept_Error) {
sockaddr: freebsd.Socket_Address_Storage
result, errno := freebsd.accept(cast(Fd)sock, &sockaddr)