diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-04-23 10:38:20 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-04-24 15:00:06 -0700 |
| commit | e0b47b12d3d1462d07c5038e4f34f5282eeec675 (patch) | |
| tree | 78869d838ec0792dba664a9dd5ce325608a45eca /src/protocol | |
| parent | ea741e0285e70e2ca417fbd2c874bb990bdbf833 (diff) | |
| download | nng-e0b47b12d3d1462d07c5038e4f34f5282eeec675.tar.gz nng-e0b47b12d3d1462d07c5038e4f34f5282eeec675.tar.bz2 nng-e0b47b12d3d1462d07c5038e4f34f5282eeec675.zip | |
fixes #368 context options could be empty
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/reqrep0/rep.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/protocol/reqrep0/rep.c b/src/protocol/reqrep0/rep.c index afc52629..4e20466b 100644 --- a/src/protocol/reqrep0/rep.c +++ b/src/protocol/reqrep0/rep.c @@ -667,19 +667,11 @@ static nni_proto_pipe_ops rep0_pipe_ops = { .pipe_stop = rep0_pipe_stop, }; -static nni_proto_ctx_option rep0_ctx_options[] = { - // terminate list - { - .co_name = NULL, - }, -}; - static nni_proto_ctx_ops rep0_ctx_ops = { - .ctx_init = rep0_ctx_init, - .ctx_fini = rep0_ctx_fini, - .ctx_send = rep0_ctx_send, - .ctx_recv = rep0_ctx_recv, - .ctx_options = rep0_ctx_options, + .ctx_init = rep0_ctx_init, + .ctx_fini = rep0_ctx_fini, + .ctx_send = rep0_ctx_send, + .ctx_recv = rep0_ctx_recv, }; static nni_proto_sock_option rep0_sock_options[] = { |
