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/reqrep/req.c | |
| 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/reqrep/req.c')
| -rw-r--r-- | src/protocol/reqrep/req.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c index 1ab49f3e..bead1ec4 100644 --- a/src/protocol/reqrep/req.c +++ b/src/protocol/reqrep/req.c @@ -185,7 +185,7 @@ req_pipe_start(void *arg) req_pipe *p = arg; req_sock *s = p->req; - if (nni_pipe_peer(p->pipe) != NNG_PROTO_REP) { + if (nni_pipe_peer(p->pipe) != NNI_PROTO_REP_V0) { return (NNG_EPROTO); } @@ -654,8 +654,8 @@ static nni_proto_sock_ops req_sock_ops = { static nni_proto req_proto = { .proto_version = NNI_PROTOCOL_VERSION, - .proto_self = { NNG_PROTO_REQ_V0, "req" }, - .proto_peer = { NNG_PROTO_REP_V0, "rep" }, + .proto_self = { NNI_PROTO_REQ_V0, "req" }, + .proto_peer = { NNI_PROTO_REP_V0, "rep" }, .proto_flags = NNI_PROTO_FLAG_SNDRCV, .proto_sock_ops = &req_sock_ops, .proto_pipe_ops = &req_pipe_ops, |
