diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-10-31 00:47:21 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-10-31 00:47:21 -0700 |
| commit | 475f4c8abfdd9c88b585105c48839f51d7523d57 (patch) | |
| tree | f6fa693cd20d1f419ec5a1af0b60ffb798b68b4c /src/protocol/pipeline | |
| parent | b92320b9afe3771465514286db6ee6746ba512d8 (diff) | |
| download | nng-475f4c8abfdd9c88b585105c48839f51d7523d57.tar.gz nng-475f4c8abfdd9c88b585105c48839f51d7523d57.tar.bz2 nng-475f4c8abfdd9c88b585105c48839f51d7523d57.zip | |
fixes #137 Remove public access to numeric protocols
Diffstat (limited to 'src/protocol/pipeline')
| -rw-r--r-- | src/protocol/pipeline/pull.c | 4 | ||||
| -rw-r--r-- | src/protocol/pipeline/push.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol/pipeline/pull.c b/src/protocol/pipeline/pull.c index 267352c5..9685f0a1 100644 --- a/src/protocol/pipeline/pull.c +++ b/src/protocol/pipeline/pull.c @@ -228,8 +228,8 @@ static nni_proto_sock_ops pull_sock_ops = { static nni_proto pull_proto = { .proto_version = NNI_PROTOCOL_VERSION, - .proto_self = { NNG_PROTO_PULL_V0, "pull" }, - .proto_peer = { NNG_PROTO_PUSH_V0, "push" }, + .proto_self = { NNI_PROTO_PULL_V0, "pull" }, + .proto_peer = { NNI_PROTO_PUSH_V0, "push" }, .proto_flags = NNI_PROTO_FLAG_RCV, .proto_pipe_ops = &pull_pipe_ops, .proto_sock_ops = &pull_sock_ops, 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, |
