aboutsummaryrefslogtreecommitdiff
path: root/tests/sock.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-08-11 13:58:06 -0700
committerGarrett D'Amore <garrett@damore.org>2017-08-11 13:58:06 -0700
commit674a3ed159c0a6ec9b62208837c388502ed80088 (patch)
tree11a2764a8f205ffc230971949108daec80b59f0b /tests/sock.c
parent69e8b1517c6d84f30367c5c32e7426d81dc28265 (diff)
downloadnng-674a3ed159c0a6ec9b62208837c388502ed80088.tar.gz
nng-674a3ed159c0a6ec9b62208837c388502ed80088.tar.bz2
nng-674a3ed159c0a6ec9b62208837c388502ed80088.zip
Windows fixes; especially idempotent init/fini.
This fixes one major problem, which was that if nni_fini() was called once on Windows, it would not be further possible to call nni_init(). While here fixed a few compilation issues.
Diffstat (limited to 'tests/sock.c')
-rw-r--r--tests/sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/sock.c b/tests/sock.c
index bec62817..4ac2fe35 100644
--- a/tests/sock.c
+++ b/tests/sock.c
@@ -175,7 +175,8 @@ Main({
So(rmax == 6550);
if (sizeof(size_t) == 8) {
- rmax = 0x1000000000000ull;
+ rmax = 0x10000;
+ rmax <<= 30;
So(nng_setopt(sock,
NNG_OPT_RCVMAXSZ, &rmax,
sizeof(rmax)) ==