diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-20 01:19:06 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-20 01:19:06 -0800 |
| commit | cb7e65fd5004fd24a7c23137e849c2828d2de6c3 (patch) | |
| tree | 3de27fee15b13faf6ef649ea9760f173555b1bdc /src/core/init.c | |
| parent | a26375dc1ec12c41aaedf3e374175d37a1ae84e9 (diff) | |
| download | nng-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.c | 1 |
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); |
