From: Pavel Charvat Date: Mon, 23 Apr 2007 12:07:19 +0000 (+0200) Subject: hashtables: fixed combination of HASH_GIVE_ALLOC and HASH_TABLE_ALLOC X-Git-Tag: holmes-import~506^2~85 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d81211bb8cb5fa357e7a6046e284ba0ff5a6cc28;p=libucw.git hashtables: fixed combination of HASH_GIVE_ALLOC and HASH_TABLE_ALLOC --- diff --git a/lib/hashtable.h b/lib/hashtable.h index ec581ed7..f57412b7 100644 --- a/lib/hashtable.h +++ b/lib/hashtable.h @@ -349,7 +349,7 @@ static inline void P(cleanup_alloc) (TAU) { } #endif #ifdef HASH_TABLE_ALLOC -static inline void * P(table_alloc) (TAUC unsigned int size) { return P(alloc)(size); } +static inline void * P(table_alloc) (TAUC unsigned int size) { return P(alloc)(TTC size); } static inline void P(table_free) (TAUC void *x) { P(free)(x); } #else static inline void * P(table_alloc) (TAUC unsigned int size) { return xmalloc(size); }