summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorroot <root>2007-11-12 00:31:08 +0000
committerroot <root>2007-11-12 00:31:08 +0000
commit2dff0867c6069c41ede598cd78bb2d5223fde025 (patch)
treeefb0a610e3e45d56e44595aedb45bd0769097d9b /event.c
parent7b056e46cb219eb2438c0b9ea152875be997b6c0 (diff)
rewrite seletc backend, port again to msvc
Diffstat (limited to 'event.c')
-rw-r--r--event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/event.c b/event.c
index 8fed83d..5dc0da6 100644
--- a/event.c
+++ b/event.c
@@ -141,7 +141,7 @@ x_cb (struct event *ev, int revents)
revents &= EV_READ | EV_WRITE | EV_TIMEOUT | EV_SIGNAL;
ev->ev_res = revents;
- ev->ev_callback (ev->ev_fd, revents, ev->ev_arg);
+ ev->ev_callback (ev->ev_fd, (short)revents, ev->ev_arg);
}
static void
@@ -358,7 +358,7 @@ x_once_cb (int revents, void *arg)
{
struct x_once *once = (struct x_once *)arg;
- once->cb (once->fd, revents, once->arg);
+ once->cb (once->fd, (short)revents, once->arg);
free (once);
}