From 16f8d1b0ad9824bf883faef90607af540f16db0f Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 6 Dec 2013 19:38:58 +0000 Subject: - 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 --- src/s_bsd_poll.c | 1 + src/s_bsd_select.c | 18 ------------------ 2 files changed, 1 insertion(+), 18 deletions(-) (limited to 'src') 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 #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); } /* -- cgit