summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-16 19:39:37 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-16 19:39:37 +0000
commit055fbd10787a85b4fc8db3e618a7dfc390f82c13 (patch)
tree6427913ea67031d0ca3068958160dfe496a8e244 /include
parentb2a2b2dc1adca9f089c693b520978dc4dd0e70bf (diff)
- 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
Diffstat (limited to 'include')
-rw-r--r--include/event.h1
-rw-r--r--include/fdlist.h2
2 files changed, 2 insertions, 1 deletions
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;