summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2012-07-23 21:29:10 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2012-07-23 21:29:10 +0100
commit3ffff9ec43fd68a4b9f70908aa6673c857fbfc8b (patch)
tree077b0010e2da402430548be38ae14672bf3ac426 /examples
parent1be06ee2ded53f5048bd6a901e6d19fc75fb3067 (diff)
downloadNim-3ffff9ec43fd68a4b9f70908aa6673c857fbfc8b.tar.gz
More deprecation warnings fixed.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/httpserver2.nim4
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: