diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-09-27 15:14:14 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-09-27 15:14:14 -0700 |
| commit | 0736a958673683a9bfe0bf577b696f49c7bd8302 (patch) | |
| tree | 93f1995f7e7130ffe31cc9701be6b390faabd6e7 /src/protocol/pair | |
| parent | 64db0f085be0c9efc6dca8d9e72d3e5a47cb792e (diff) | |
| download | nng-0736a958673683a9bfe0bf577b696f49c7bd8302.tar.gz nng-0736a958673683a9bfe0bf577b696f49c7bd8302.tar.bz2 nng-0736a958673683a9bfe0bf577b696f49c7bd8302.zip | |
Remove last vestiges of integer option numbers.
Diffstat (limited to 'src/protocol/pair')
| -rw-r--r-- | src/protocol/pair/pair_v1.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/protocol/pair/pair_v1.c b/src/protocol/pair/pair_v1.c index 2cd5782b..0b9e0643 100644 --- a/src/protocol/pair/pair_v1.c +++ b/src/protocol/pair/pair_v1.c @@ -25,10 +25,6 @@ static void pair1_pipe_getq_cb(void *); static void pair1_pipe_putq_cb(void *); static void pair1_pipe_fini(void *); -// This is exposed as an external name for external consumers. -#define NNG_OPT_PAIR1_POLY "pair1-polyamorous" -const char *nng_opt_pair1_poly = NNG_OPT_PAIR1_POLY; - // pair1_sock is our per-socket protocol private structure. struct pair1_sock { nni_sock * nsock; @@ -73,7 +69,6 @@ pair1_sock_init(void **sp, nni_sock *nsock) { pair1_sock *s; int rv; - int poly; if ((s = NNI_ALLOC_STRUCT(s)) == NULL) { return (NNG_ENOMEM); @@ -87,8 +82,7 @@ pair1_sock_init(void **sp, nni_sock *nsock) // Raw mode uses this. nni_mtx_init(&s->mtx); - if (((rv = nni_aio_init(&s->aio_getq, pair1_sock_getq_cb, s)) != 0) || - ((rv = nni_option_register("polyamorous", &poly)) != 0)) { + if ((rv = nni_aio_init(&s->aio_getq, pair1_sock_getq_cb, s)) != 0) { pair1_sock_fini(s); return (rv); } |
