From: Martin Mares Date: Sat, 10 Jan 2004 12:43:54 +0000 (+0000) Subject: Use HASH_USE_POOL for configuration space allocations. X-Git-Tag: holmes-import~1145 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2653a634af8cf645b664709cac82ef87f45dffde;p=libucw.git Use HASH_USE_POOL for configuration space allocations. --- diff --git a/lib/urlkey.c b/lib/urlkey.c index 82e83401..145ef484 100644 --- a/lib/urlkey.c +++ b/lib/urlkey.c @@ -45,7 +45,7 @@ struct pxtab_node { #define HASH_GIVE_EQ #define HASH_GIVE_EXTRA_SIZE #define HASH_GIVE_INIT_KEY -#define HASH_GIVE_ALLOC +#define HASH_USE_POOL cfpool static inline uns pxtab_hash(HASH_KEY_DECL) @@ -74,12 +74,6 @@ pxtab_init_key(struct pxtab_node *node, HASH_KEY_DECL) node->rhs = NULL; } -static inline void * -pxtab_alloc(uns size) -{ - return cfg_malloc(size); -} - #include "lib/hashtable.h" static inline byte *