summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-12-06 19:38:58 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-12-06 19:38:58 +0000
commit16f8d1b0ad9824bf883faef90607af540f16db0f (patch)
treec61fe7d28b9e46359f13d8edf5df984a3876a7a5 /src
parent0ed78d753533991b9e3c0f8da1bf9974aeef2e55 (diff)
- Fixed compile warnings with --enable-poll and --enable-select
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2626 82007160-df01-0410-b94d-b575c5fd34c7
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);
}
/*