summary refs log tree commit diff stats
path: root/lib/wrappers
diff options
context:
space:
mode:
authorMichał Zieliński <michal@zielinscy.org.pl>2014-03-05 18:31:22 +0100
committerMichał Zieliński <michal@zielinscy.org.pl>2014-03-05 18:31:22 +0100
commit6e42513acd19e447f7a546a3a6f9891978244b2b (patch)
tree64bb3754a3aef9558d4009b968a38531cf0b22d5 /lib/wrappers
parent1ce30b9e100bd12394fa8f633137b4da4c98a1d9 (diff)
downloadNim-6e42513acd19e447f7a546a3a6f9891978244b2b.tar.gz
zmq: remove unnecessary 'var' decls from high-level procs
Diffstat (limited to 'lib/wrappers')
-rw-r--r--lib/wrappers/zmq.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/wrappers/zmq.nim b/lib/wrappers/zmq.nim
index 4e658028e..9826ab813 100644
--- a/lib/wrappers/zmq.nim
+++ b/lib/wrappers/zmq.nim
@@ -299,12 +299,12 @@ proc open*(address: string, server: bool, mode: TConnectionMode = conDEALER,
   else:
     if connect(result.s, address) != 0'i32: zmqError()
   
-proc close*(c: var TConnection) =
+proc close*(c: TConnection) =
   ## closes the connection.
   if close(c.s) != 0'i32: zmqError()
   if term(c.c) != 0'i32: zmqError()
   
-proc send*(c: var TConnection, msg: string) =
+proc send*(c: TConnection, msg: string) =
   ## sends a message over the connection.
   var m: TMsg
   if msg_init(m, msg.len) != 0'i32: zmqError()
@@ -312,7 +312,7 @@ proc send*(c: var TConnection, msg: string) =
   if send(c.s, m, 0'i32) != 0'i32: zmqError()
   discard msg_close(m)
   
-proc receive*(c: var TConnection): string =
+proc receive*(c: TConnection): string =
   ## receives a message from a connection.
   var m: TMsg
   if msg_init(m) != 0'i32: zmqError()
@@ -320,4 +320,3 @@ proc receive*(c: var TConnection): string =
   result = newString(msg_size(m))
   copyMem(addr(result[0]), msg_data(m), result.len)
   discard msg_close(m)
-