summaryrefslogtreecommitdiff
path: root/ev_poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev_poll.c')
-rw-r--r--ev_poll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev_poll.c b/ev_poll.c
index 81e4b53..e15504b 100644
--- a/ev_poll.c
+++ b/ev_poll.c
@@ -1,7 +1,7 @@
/*
* libev poll fd activity backend
*
- * Copyright (c) 2007,2008,2009,2010 Marc Alexander Lehmann <libev@schmorp.de>
+ * Copyright (c) 2007,2008,2009,2010,2011 Marc Alexander Lehmann <libev@schmorp.de>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modifica-
@@ -92,7 +92,7 @@ poll_poll (EV_P_ ev_tstamp timeout)
int res;
EV_RELEASE_CB;
- res = poll (polls, pollcnt, (int)ceil (timeout * 1000.));
+ res = poll (polls, pollcnt, ev_timeout_to_ms (timeout));
EV_ACQUIRE_CB;
if (expect_false (res < 0))