aboutsummaryrefslogtreecommitdiff
path: root/tests/tcp.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 /tests/tcp.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 'tests/tcp.c')
-rw-r--r--tests/tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tcp.c b/tests/tcp.c
index 4cc9070e..0ec69121 100644
--- a/tests/tcp.c
+++ b/tests/tcp.c
@@ -21,7 +21,7 @@ TestMain("TCP Transport", {
Convey("We cannot connect to wild cards", {
- nng_socket *s;
+ nng_socket s;
So(nng_open(&s, NNG_PROTO_PAIR) == 0);
Reset({
@@ -31,8 +31,8 @@ TestMain("TCP Transport", {
})
Convey("We can bind to wild card", {
- nng_socket *s1;
- nng_socket *s2;
+ nng_socket s1;
+ nng_socket s2;
So(nng_open(&s1, NNG_PROTO_PAIR) == 0);
So(nng_open(&s2, NNG_PROTO_PAIR) == 0);
Reset({