aboutsummaryrefslogtreecommitdiff
path: root/tests/pubsub.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/pubsub.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/pubsub.c')
-rw-r--r--tests/pubsub.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/pubsub.c b/tests/pubsub.c
index 39e8fe12..12355554 100644
--- a/tests/pubsub.c
+++ b/tests/pubsub.c
@@ -24,7 +24,7 @@ Main({
Test("PUB/SUB pattern", {
Convey("We can create a PUB socket", {
- nng_socket *pub;
+ nng_socket pub;
So(nng_open(&pub, NNG_PROTO_PUB) == 0);
So(pub != NULL);
@@ -45,7 +45,7 @@ Main({
})
Convey("We can create a SUB socket", {
- nng_socket *sub;
+ nng_socket sub;
So(nng_open(&sub, NNG_PROTO_SUB) == 0);
So(sub != NULL);
@@ -67,8 +67,8 @@ Main({
})
Convey("We can create a linked PUB/SUB pair", {
- nng_socket *pub;
- nng_socket *sub;
+ nng_socket pub;
+ nng_socket sub;
So((rv = nng_open(&pub, NNG_PROTO_PUB)) == 0);
So(pub != NULL);