diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-09-27 17:15:32 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2014-09-27 17:15:32 +0100 |
commit | baae9bfea816e370849d39e219d423ef120d8a52 (patch) | |
tree | 34310d268fa669eef45d7fec10404fe5bdbfc7c1 /lib/pure/asyncfile.nim | |
parent | d576fbb39a771016d869706db169806eb8972c79 (diff) | |
download | Nim-baae9bfea816e370849d39e219d423ef120d8a52.tar.gz |
s/sock/fd/. Fixes #1487.
Diffstat (limited to 'lib/pure/asyncfile.nim')
-rw-r--r-- | lib/pure/asyncfile.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/asyncfile.nim b/lib/pure/asyncfile.nim index e861c6e48..c09cb5a35 100644 --- a/lib/pure/asyncfile.nim +++ b/lib/pure/asyncfile.nim @@ -125,7 +125,7 @@ proc read*(f: AsyncFile, size: int): Future[string] = var ol = PCustomOverlapped() GC_ref(ol) - ol.data = TCompletionData(sock: f.fd, cb: + ol.data = TCompletionData(fd: f.fd, cb: proc (fd: TAsyncFD, bytesCount: Dword, errcode: OSErrorCode) = if not retFuture.finished: if errcode == OSErrorCode(-1): @@ -251,7 +251,7 @@ proc write*(f: AsyncFile, data: string): Future[void] = var ol = PCustomOverlapped() GC_ref(ol) - ol.data = TCompletionData(sock: f.fd, cb: + ol.data = TCompletionData(fd: f.fd, cb: proc (fd: TAsyncFD, bytesCount: DWord, errcode: OSErrorCode) = if not retFuture.finished: if errcode == OSErrorCode(-1): |