Skip to content

Commit

Permalink
devel: style fix (nim-lang#19318)
Browse files Browse the repository at this point in the history
this allows "--styleCheck:usages --styleCheck:error"
  • Loading branch information
stefantalpalaru authored and PMunch committed Mar 28, 2022
1 parent b479006 commit 2d9c760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pure/nativesockets.nim
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ proc accept*(fd: SocketHandle, inheritable = defined(nimInheritHandles)): (Socke
## child processes.
##
## Returns (osInvalidSocket, "") if an error occurred.
var sockAddress: Sockaddr
var sockAddress: SockAddr
var addrLen = sizeof(sockAddress).SockLen
var sock =
when (defined(linux) or defined(bsd)) and not defined(nimdoc):
Expand Down
2 changes: 1 addition & 1 deletion lib/pure/net.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@ proc sendTo*(socket: Socket, address: IpAddress, port: Port,
assert(not socket.isClosed, "Cannot `sendTo` on a closed socket")

var sa: Sockaddr_storage
var sl: Socklen
var sl: SockLen
toSockAddr(address, port, sa, sl)
result = sendto(socket.fd, cstring(data), data.len().cint, flags.cint,
cast[ptr SockAddr](addr sa), sl)
Expand Down

0 comments on commit 2d9c760

Please sign in to comment.