summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s_bsd_poll.c1
-rw-r--r--src/s_bsd_select.c18
2 files changed, 1 insertions, 18 deletions
diff --git a/src/s_bsd_poll.c b/src/s_bsd_poll.c
index 902650a..2bcd214 100644
--- a/src/s_bsd_poll.c
+++ b/src/s_bsd_poll.c
@@ -28,6 +28,7 @@
#include <sys/poll.h>
#include "fdlist.h"
#include "list.h"
+#include "memory.h"
#include "hook.h"
#include "ircd.h"
#include "s_bsd.h"
diff --git a/src/s_bsd_select.c b/src/s_bsd_select.c
index c0b327c..d94883a 100644
--- a/src/s_bsd_select.c
+++ b/src/s_bsd_select.c
@@ -41,23 +41,7 @@
static fd_set select_readfds, tmpreadfds;
static fd_set select_writefds, tmpwritefds;
static int highest_fd = -1;
-static dlink_node *hookptr;
-/*
- * changing_fdlimit
- *
- * Make sure hard_fdlimit doesn't go too big.
- */
-static void *
-changing_fdlimit(va_list args)
-{
- int fdmax = va_arg(args, int);
-
- if (fdmax > FD_SETSIZE)
- fdmax = FD_SETSIZE;
-
- return pass_callback(hookptr, fdmax);
-}
/*
* init_netio
@@ -70,8 +54,6 @@ init_netio(void)
{
FD_ZERO(&select_readfds);
FD_ZERO(&select_writefds);
-
- hookptr = install_hook(fdlimit_cb, changing_fdlimit);
}
/*