From cb7e65fd5004fd24a7c23137e849c2828d2de6c3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 20 Jan 2017 01:19:06 -0800 Subject: fixes #18 Sockets should be uint32_t's (handles) not pointers. --- tests/pubsub.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/pubsub.c') 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); -- cgit v1.2.3-70-g09d2