From 4a24ebe175bc3eebf7fbf2ac581b2339a809ace1 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 20 Jan 2017 17:47:02 -0800 Subject: Dangling compiler warnings from sock handle change. --- tests/pubsub.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/pubsub.c') diff --git a/tests/pubsub.c b/tests/pubsub.c index 12355554..431d6980 100644 --- a/tests/pubsub.c +++ b/tests/pubsub.c @@ -27,7 +27,6 @@ Main({ nng_socket pub; So(nng_open(&pub, NNG_PROTO_PUB) == 0); - So(pub != NULL); Reset({ nng_close(pub); @@ -47,7 +46,6 @@ Main({ Convey("We can create a SUB socket", { nng_socket sub; So(nng_open(&sub, NNG_PROTO_SUB) == 0); - So(sub != NULL); Reset({ nng_close(sub); @@ -70,11 +68,9 @@ Main({ nng_socket pub; nng_socket sub; - So((rv = nng_open(&pub, NNG_PROTO_PUB)) == 0); - So(pub != NULL); + So(nng_open(&pub, NNG_PROTO_PUB) == 0); - So((rv = nng_open(&sub, NNG_PROTO_SUB)) == 0); - So(sub != NULL); + So(nng_open(&sub, NNG_PROTO_SUB) == 0); Reset({ nng_close(pub); -- cgit v1.2.3-70-g09d2