summaryrefslogtreecommitdiff
path: root/src/upoll.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/upoll.cpp')
-rw-r--r--src/upoll.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/upoll.cpp b/src/upoll.cpp
index 9e66279..3295bba 100644
--- a/src/upoll.cpp
+++ b/src/upoll.cpp
@@ -56,12 +56,10 @@
#include <unistd.h>
#endif
-#include <limits.h>
-
-int xs::upoll (xs_pollitem_t *items_, int nitems_, long timeout_)
+int xs::upoll (xs_pollitem_t *items_, int nitems_, int timeout_)
{
#if defined XS_POLL_BASED_ON_POLL
- if (unlikely (nitems_ < 0 || timeout_ > INT_MAX)) {
+ if (unlikely (nitems_ < 0)) {
errno = EINVAL;
return -1;
}