From b93d5759c9b39ff153a14d474d800cd981f7dc97 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Jan 2017 02:32:32 -0800 Subject: Event notification via pollable FDs verified working. --- src/core/options.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/options.c') diff --git a/src/core/options.c b/src/core/options.c index 35411562..a0b74014 100644 --- a/src/core/options.c +++ b/src/core/options.c @@ -135,13 +135,13 @@ nni_getopt_fd(nni_sock *s, nni_notifyfd *fd, int mask, void *val, size_t *szp) } switch (mask) { - case NNG_EV_CAN_SEND: - if ((s->s_flags & NNI_PROTO_FLAG_SEND) == 0) { + case NNG_EV_CAN_SND: + if ((s->s_flags & NNI_PROTO_FLAG_SND) == 0) { return (NNG_ENOTSUP); } break; - case NNG_EV_CAN_RECV: - if ((s->s_flags & NNI_PROTO_FLAG_RECV) == 0) { + case NNG_EV_CAN_RCV: + if ((s->s_flags & NNI_PROTO_FLAG_RCV) == 0) { return (NNG_ENOTSUP); } break; -- cgit v1.2.3-70-g09d2