aboutsummaryrefslogtreecommitdiff
path: root/src/protocol/pipeline/push.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-10-31 00:47:21 -0700
committerGarrett D'Amore <garrett@damore.org>2017-10-31 00:47:21 -0700
commit475f4c8abfdd9c88b585105c48839f51d7523d57 (patch)
treef6fa693cd20d1f419ec5a1af0b60ffb798b68b4c /src/protocol/pipeline/push.c
parentb92320b9afe3771465514286db6ee6746ba512d8 (diff)
downloadnng-475f4c8abfdd9c88b585105c48839f51d7523d57.tar.gz
nng-475f4c8abfdd9c88b585105c48839f51d7523d57.tar.bz2
nng-475f4c8abfdd9c88b585105c48839f51d7523d57.zip
fixes #137 Remove public access to numeric protocols
Diffstat (limited to 'src/protocol/pipeline/push.c')
-rw-r--r--src/protocol/pipeline/push.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocol/pipeline/push.c b/src/protocol/pipeline/push.c
index 995ac56d..9ff74558 100644
--- a/src/protocol/pipeline/push.c
+++ b/src/protocol/pipeline/push.c
@@ -114,7 +114,7 @@ push_pipe_start(void *arg)
push_pipe *p = arg;
push_sock *s = p->push;
- if (nni_pipe_peer(p->pipe) != NNG_PROTO_PULL) {
+ if (nni_pipe_peer(p->pipe) != NNI_PROTO_PULL_V0) {
return (NNG_EPROTO);
}
@@ -245,8 +245,8 @@ static nni_proto_sock_ops push_sock_ops = {
static nni_proto push_proto = {
.proto_version = NNI_PROTOCOL_VERSION,
- .proto_self = { NNG_PROTO_PUSH_V0, "push" },
- .proto_peer = { NNG_PROTO_PULL_V0, "pull" },
+ .proto_self = { NNI_PROTO_PUSH_V0, "push" },
+ .proto_peer = { NNI_PROTO_PULL_V0, "pull" },
.proto_flags = NNI_PROTO_FLAG_SND,
.proto_pipe_ops = &push_pipe_ops,
.proto_sock_ops = &push_sock_ops,