summaryrefslogtreecommitdiff
path: root/ev_select.c
diff options
context:
space:
mode:
authorroot <root>2008-03-16 16:38:23 +0000
committerroot <root>2008-03-16 16:38:23 +0000
commite9e46a13c50948d7ae41b2dc3c888fe323e7067b (patch)
tree7aeb1031d8f594548b280ef803661d8e6962443a /ev_select.c
parent088c2d69406428c26aa852fc9b02289cbb5e6213 (diff)
*** empty log message ***
Diffstat (limited to 'ev_select.c')
-rw-r--r--ev_select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ev_select.c b/ev_select.c
index b52a88d..3b06654 100644
--- a/ev_select.c
+++ b/ev_select.c
@@ -95,8 +95,8 @@ select_modify (EV_P_ int fd, int oev, int nev)
#else
- int word = fd / NFDBITS;
- int mask = 1UL << (fd % NFDBITS);
+ int word = fd / NFDBITS;
+ fd_mask mask = 1UL << (fd % NFDBITS);
if (expect_false (vec_max < word + 1))
{
@@ -108,8 +108,8 @@ select_modify (EV_P_ int fd, int oev, int nev)
vec_wo = ev_realloc (vec_wo, new_max * NFDBYTES); /* could free/malloc */
for (; vec_max < new_max; ++vec_max)
- ((fd_mask *)vec_ri)[vec_max] =
- ((fd_mask *)vec_wi)[vec_max] = 0;
+ ((fd_mask *)vec_ri) [vec_max] =
+ ((fd_mask *)vec_wi) [vec_max] = 0;
}
((fd_mask *)vec_ri) [word] |= mask;