aboutsummaryrefslogtreecommitdiff
path: root/tests/sock.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/sock.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/sock.c')
-rw-r--r--tests/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sock.c b/tests/sock.c
index 123354ac..9ceb99cb 100644
--- a/tests/sock.c
+++ b/tests/sock.c
@@ -20,7 +20,7 @@ Main({
Convey("We are able to open a PAIR socket", {
int rv;
- nng_socket *sock = NULL;
+ nng_socket sock = NULL;
rv = nng_open(&sock, NNG_PROTO_PAIR);
So(rv == 0);
@@ -147,7 +147,7 @@ Main({
})
Convey("We can send and receive messages", {
- nng_socket *sock2 = NULL;
+ nng_socket sock2 = NULL;
int len = 1;
nng_msg *msg;
uint64_t second = 1000000;