Fixes to improve portability (especially to OS X, Solaris, OpenBSD).
[ircu2.10.12-pk.git] / ircd / engine_poll.c
index a166d4f2482d248730f3d38aaad79ce252114a78..fe52249bc76181b95f55fb6fac2ab406ffb14159 100644 (file)
@@ -244,7 +244,7 @@ engine_loop(struct Generators* gen)
   int nfds;
   int i;
   int errcode;
-  size_t codesize;
+  socklen_t codesize;
   struct Socket *sock;
 
   while (running) {
@@ -303,8 +303,6 @@ engine_loop(struct Generators* gen)
        }
       }
 
-      assert(!(pollfdList[i].revents & POLLERR));
-
 #ifdef POLLHUP
       if (pollfdList[i].revents & POLLHUP) { /* hang-up on socket */
        Debug((DEBUG_ENGINE, "poll: EOF from client (POLLHUP)"));