summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-01-08 22:51:23 +0100
committerAraq <rumpf_a@web.de>2013-01-08 22:51:23 +0100
commit5a9637f2f34a2fa93675ad9ded3dc6cd865eba67 (patch)
treee774ae35f646ba818863c004d37fd806e43b4065 /lib
parent3af5c99336c2454aee1d853fa7fcbbf3ce16d568 (diff)
downloadNim-5a9637f2f34a2fa93675ad9ded3dc6cd865eba67.tar.gz
make some tests green
Diffstat (limited to 'lib')
-rwxr-xr-xlib/pure/sockets.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim
index 86f06324a..f233e53c8 100755
--- a/lib/pure/sockets.nim
+++ b/lib/pure/sockets.nim
@@ -1,7 +1,7 @@
 #
 #
 #            Nimrod's Runtime Library
-#        (c) Copyright 2012 Andreas Rumpf
+#        (c) Copyright 2013 Andreas Rumpf
 #
 #    See the file "copying.txt", included in this
 #    distribution, for details about the copyright.
@@ -1274,6 +1274,7 @@ proc recv*(socket: TSocket): TaintedString {.tags: [FReadIO], deprecated.} =
       add(result.string, buf)
       if bytesRead != bufSize-1: break
 
+{.push warning[deprecated]: off.}
 proc recvTimeout*(socket: TSocket, timeout: int): TaintedString {.
   tags: [FReadIO], deprecated.} =
   ## overloaded variant to support a ``timeout`` parameter, the ``timeout``
@@ -1287,6 +1288,7 @@ proc recvTimeout*(socket: TSocket, timeout: int): TaintedString {.
       raise newException(ETimeout, "Call to recv() timed out.")
   
   return socket.recv
+{.pop.}
 
 proc recvAsync*(socket: TSocket, s: var TaintedString): bool {.
   tags: [FReadIO], deprecated.} =