Skip to content

Commit

Permalink
fix: change Socklen into SockLen
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Oct 14, 2024
1 parent b63044b commit 2e6055a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webrtc/sctp/sctp_connection.nim
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ proc closeChannel*(self: SctpConn, streamId: uint16) =
IPPROTO_SCTP,
SCTP_RESET_STREAMS,
addr srs,
len.Socklen
len.SockLen
)
if ret < 0:
raise newException(WebRtcError, "SCTP - Close channel failed: " & sctpStrerror())
Expand All @@ -305,7 +305,7 @@ proc closeAllChannels*(self: SctpConn) =
IPPROTO_SCTP,
SCTP_RESET_STREAMS,
addr srs,
len.Socklen
len.SockLen
)
if ret < 0:
raise newException(WebRtcError, "SCTP - Close all channels failed: " & sctpStrerror())
Expand Down
2 changes: 1 addition & 1 deletion webrtc/sctp/sctp_transport.nim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ proc handleAccept(sock: ptr socket, data: pointer, flags: cint) {.cdecl.} =
# Callback procedure called when a connection is about to be accepted.
var
sconn: Sockaddr_conn
slen: Socklen = sizeof(Sockaddr_conn).uint32
slen: SockLen = sizeof(Sockaddr_conn).uint32
let
sctp = cast[Sctp](data)
sctpSocket =
Expand Down

0 comments on commit 2e6055a

Please sign in to comment.