diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2012-07-23 21:29:10 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2012-07-23 21:29:10 +0100 |
commit | 3ffff9ec43fd68a4b9f70908aa6673c857fbfc8b (patch) | |
tree | 077b0010e2da402430548be38ae14672bf3ac426 /examples | |
parent | 1be06ee2ded53f5048bd6a901e6d19fc75fb3067 (diff) | |
download | Nim-3ffff9ec43fd68a4b9f70908aa6673c857fbfc8b.tar.gz |
More deprecation warnings fixed.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/httpserver2.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/httpserver2.nim b/examples/httpserver2.nim index 45c57a755..45350ac89 100755 --- a/examples/httpserver2.nim +++ b/examples/httpserver2.nim @@ -232,7 +232,9 @@ when isMainModule: # check for new new connection & handle it var list: seq[TSocket] = @[server.socket] if select(list, 10) > 0: - var client = accept(server.socket) + var client: TSocket + new(client) + accept(server.socket, client) try: acceptRequest(server, client) except: |