From 055fbd10787a85b4fc8db3e618a7dfc390f82c13 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 16 Nov 2012 19:39:37 +0000 Subject: - Implemented memory pool allocator which basically is taken from Tor's mempool allocator for Tor cells - Fixed compile warnings in conf_class.c - ./configure --enable-assert works again git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1654 82007160-df01-0410-b94d-b575c5fd34c7 --- include/event.h | 1 + include/fdlist.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/event.h b/include/event.h index f9b6ab0..a01c1f1 100644 --- a/include/event.h +++ b/include/event.h @@ -24,6 +24,7 @@ #ifndef INCLUDED_event_h #define INCLUDED_event_h +#include "client.h" /* * How many event entries we need to allocate at a time in the block diff --git a/include/fdlist.h b/include/fdlist.h index 06313ec..cc36896 100644 --- a/include/fdlist.h +++ b/include/fdlist.h @@ -92,7 +92,7 @@ typedef struct _fde { struct _fde *hnext; } fde_t; -#define FD_HASH_SIZE CLIENT_HEAP_SIZE +#define FD_HASH_SIZE 1024 extern int number_fd; extern int hard_fdlimit; -- cgit