devel: style fix (#19318)

this allows "--styleCheck:usages --styleCheck:error"
This commit is contained in:
Ștefan Talpalaru 2022-01-04 07:56:10 +01:00 • committed by GitHub
commit 35cae73aa5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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)