Since the event(s) passed to a callback can be a mask of all events
authorkrw <krw@openbsd.org>
Sun, 13 Jul 2014 15:38:09 +0000 (15:38 +0000)
committerkrw <krw@openbsd.org>
Sun, 13 Jul 2014 15:38:09 +0000 (15:38 +0000)
commitf485ae0dc19c5809145d83e350a15fcf97f731ad
treebcec36ec2437d1f4dc92995320e310d588721fb9
parentaabcc9a1cf92b664532a1e7cb2103ad7b0a35f11
Since the event(s) passed to a callback can be a mask of all events
of interest and EV_WRITE is or'ed into the interesting events, it
is more correct to check both events each time. Pointed out by
Claudio.

ok henning@ claudio@
usr.sbin/ypldap/ldapclient.c
usr.sbin/ypldap/ypldap.c
usr.sbin/ypldap/ypldap_dns.c