style improvements; fixes #11774

This commit is contained in:
Araq 2019-07-19 17:25:04 +02:00
commit 5a020d641d
6 changed files with 9 additions and 9 deletions

View file

@ -122,7 +122,7 @@ when defined(unix):
const extra = " -D_XOPEN_SOURCE"
else:
const extra = ""
{.passC: "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" & extra.}
{.passc: "-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0" & extra.}
const
CORO_CREATED = 0

View file

@ -1110,7 +1110,7 @@ proc waitFor(socket: Socket, waited: var Duration, timeout, size: int,
if selRet < 0: raiseOSError(osLastError())
if selRet != 1:
raise newException(TimeoutError, "Call to '" & funcName & "' timed out.")
waited += (getMonoTIme() - startTime)
waited += (getMonoTime() - startTime)
proc recv*(socket: Socket, data: pointer, size: int, timeout: int): int {.
tags: [ReadIOEffect, TimeEffect].} =