aboutsummaryrefslogtreecommitdiff
path: root/src/core/init.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-20 01:19:06 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-20 01:19:06 -0800
commitcb7e65fd5004fd24a7c23137e849c2828d2de6c3 (patch)
tree3de27fee15b13faf6ef649ea9760f173555b1bdc /src/core/init.c
parenta26375dc1ec12c41aaedf3e374175d37a1ae84e9 (diff)
downloadnng-cb7e65fd5004fd24a7c23137e849c2828d2de6c3.tar.gz
nng-cb7e65fd5004fd24a7c23137e849c2828d2de6c3.tar.bz2
nng-cb7e65fd5004fd24a7c23137e849c2828d2de6c3.zip
fixes #18 Sockets should be uint32_t's (handles) not pointers.
Diffstat (limited to 'src/core/init.c')
-rw-r--r--src/core/init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/init.c b/src/core/init.c
index e0ce3bae..48a5096c 100644
--- a/src/core/init.c
+++ b/src/core/init.c
@@ -37,6 +37,7 @@ nni_init_helper(void)
}
nni_idhash_set_limits(nni_pipes, 1, 0x7fffffff,
nni_random() & 0x7fffffff);
+ nni_idhash_set_limits(nni_sockets, 1, 0xffffffff, 1);
nni_idlock = &nni_idlock_x;
nni_tran_init();
return (0);