aboutsummaryrefslogtreecommitdiff
path: root/tests/pipeline.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/pipeline.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/pipeline.c')
-rw-r--r--tests/pipeline.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/pipeline.c b/tests/pipeline.c
index 5339146f..688c48bf 100644
--- a/tests/pipeline.c
+++ b/tests/pipeline.c
@@ -23,7 +23,7 @@ Main({
Test("PIPELINE (PUSH/PULL) pattern", {
Convey("We can create a PUSH socket", {
- nng_socket *push;
+ nng_socket push;
So(nng_open(&push, NNG_PROTO_PUSH) == 0);
So(push != NULL);
@@ -44,7 +44,7 @@ Main({
})
Convey("We can create a PULL socket", {
- nng_socket *pull;
+ nng_socket pull;
So(nng_open(&pull, NNG_PROTO_PULL) == 0);
So(pull != NULL);
@@ -66,9 +66,9 @@ Main({
})
Convey("We can create a linked PUSH/PULL pair", {
- nng_socket *push = NULL;
- nng_socket *pull = NULL;
- nng_socket *what = NULL;
+ nng_socket push = NULL;
+ nng_socket pull = NULL;
+ nng_socket what = NULL;
So(nng_open(&push, NNG_PROTO_PUSH) == 0);
So(nng_open(&pull, NNG_PROTO_PULL) == 0);
@@ -107,10 +107,10 @@ Main({
nng_msg *def;
uint64_t usecs;
int len;
- nng_socket *push;
- nng_socket *pull1;
- nng_socket *pull2;
- nng_socket *pull3;
+ nng_socket push;
+ nng_socket pull1;
+ nng_socket pull2;
+ nng_socket pull3;
So(nng_open(&push, NNG_PROTO_PUSH) == 0);
So(nng_open(&pull1, NNG_PROTO_PULL) == 0);