diff options
Diffstat (limited to 'src/protocol/reqrep')
| -rw-r--r-- | src/protocol/reqrep/rep.c | 4 | ||||
| -rw-r--r-- | src/protocol/reqrep/req.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/protocol/reqrep/rep.c b/src/protocol/reqrep/rep.c index 5d924e32..100e739d 100644 --- a/src/protocol/reqrep/rep.c +++ b/src/protocol/reqrep/rep.c @@ -492,8 +492,8 @@ static nni_proto_sock_ops rep_sock_ops = { static nni_proto nni_rep_proto = { .proto_version = NNI_PROTOCOL_VERSION, - .proto_self = { NNG_PROTO_REP_V0, "rep" }, - .proto_peer = { NNG_PROTO_REQ_V0, "req" }, + .proto_self = { NNI_PROTO_REP_V0, "rep" }, + .proto_peer = { NNI_PROTO_REQ_V0, "req" }, .proto_flags = NNI_PROTO_FLAG_SNDRCV, .proto_sock_ops = &rep_sock_ops, .proto_pipe_ops = &rep_pipe_ops, 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, |
