summaryrefslogtreecommitdiff
path: root/src/s_bsd_kqueue.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-12-10 19:46:34 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-12-10 19:46:34 +0000
commitf2eb28bc31da833feed1c35e0dc4c87b2b32dc3c (patch)
tree5555a489f69d75fc141b896e3a2ebb2a8770d6b3 /src/s_bsd_kqueue.c
parent0efb6adec538b6112b3e2ce782cc84001fb6ecd0 (diff)
- s_bsd_select.c, s_bsd_devpoll.c, s_bsd_epoll.c,
s_bsd_kqueue.c, s_bsd_poll.c: style corrections git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2649 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/s_bsd_kqueue.c')
-rw-r--r--src/s_bsd_kqueue.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/s_bsd_kqueue.c b/src/s_bsd_kqueue.c
index 94e1777..cb38e50 100644
--- a/src/s_bsd_kqueue.c
+++ b/src/s_bsd_kqueue.c
@@ -117,7 +117,7 @@ comm_setselect(fde_t *F, unsigned int type, PF *handler,
}
new_events = (F->read_handler ? COMM_SELECT_READ : 0) |
- (F->write_handler ? COMM_SELECT_WRITE : 0);
+ (F->write_handler ? COMM_SELECT_WRITE : 0);
if (timeout != 0)
F->timeout = CurrentTime + (timeout / 1000);
@@ -178,6 +178,7 @@ comm_select(void)
continue;
if (ke[i].filter == EVFILT_READ)
+ {
if ((hdl = F->read_handler) != NULL)
{
F->read_handler = NULL;
@@ -185,8 +186,10 @@ comm_select(void)
if (!F->flags.open)
continue;
}
+ }
if (ke[i].filter == EVFILT_WRITE)
+ {
if ((hdl = F->write_handler) != NULL)
{
F->write_handler = NULL;
@@ -194,6 +197,7 @@ comm_select(void)
if (!F->flags.open)
continue;
}
+ }
comm_setselect(F, 0, NULL, NULL, 0);
}