diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-20 17:47:02 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-20 17:47:02 -0800 |
| commit | 4a24ebe175bc3eebf7fbf2ac581b2339a809ace1 (patch) | |
| tree | b3048d482412379ff44c1d2217ca512339a771f6 /tests/pubsub.c | |
| parent | cb7e65fd5004fd24a7c23137e849c2828d2de6c3 (diff) | |
| download | nng-4a24ebe175bc3eebf7fbf2ac581b2339a809ace1.tar.gz nng-4a24ebe175bc3eebf7fbf2ac581b2339a809ace1.tar.bz2 nng-4a24ebe175bc3eebf7fbf2ac581b2339a809ace1.zip | |
Dangling compiler warnings from sock handle change.
Diffstat (limited to 'tests/pubsub.c')
| -rw-r--r-- | tests/pubsub.c | 8 |
1 files changed, 2 insertions, 6 deletions
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); |
