diff options
Diffstat (limited to 'src/core/options.c')
| -rw-r--r-- | src/core/options.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
