summary refs log tree commit diff stats
path: root/lib/pure/asyncfile.nim
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2014-09-27 17:15:32 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2014-09-27 17:15:32 +0100
commitbaae9bfea816e370849d39e219d423ef120d8a52 (patch)
tree34310d268fa669eef45d7fec10404fe5bdbfc7c1 /lib/pure/asyncfile.nim
parentd576fbb39a771016d869706db169806eb8972c79 (diff)
downloadNim-baae9bfea816e370849d39e219d423ef120d8a52.tar.gz
s/sock/fd/. Fixes #1487.
Diffstat (limited to 'lib/pure/asyncfile.nim')
-rw-r--r--lib/pure/asyncfile.nim4
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):