From 5a9637f2f34a2fa93675ad9ded3dc6cd865eba67 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 8 Jan 2013 22:51:23 +0100 Subject: make some tests green --- lib/pure/sockets.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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.} = -- cgit 1.4.1-2-gfad0