From 3435813379c276c3c020cb4e3942554be0040ecc Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Thu, 26 May 2011 03:32:25 +0000 Subject: libglusterfs: clean up memory types Unify them in one header, weed out overlap. Signed-off-by: Csaba Henk Signed-off-by: Anand Avati BUG: 2562 (invoke external commands precisely with fork + exec) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2562 --- libglusterfs/src/trie.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libglusterfs/src/trie.c') diff --git a/libglusterfs/src/trie.c b/libglusterfs/src/trie.c index 2501e71a5..758e068c3 100644 --- a/libglusterfs/src/trie.c +++ b/libglusterfs/src/trie.c @@ -23,7 +23,6 @@ #include #include "common-utils.h" -#include "trie-mem-types.h" #include "trie.h" #define DISTANCE_EDIT 1 @@ -53,7 +52,7 @@ trie_new () { trie_t *trie = NULL; - trie = GF_CALLOC (1, sizeof (*trie), gf_trie_mt_trie); + trie = GF_CALLOC (1, sizeof (*trie), gf_common_mt_trie_trie); if (!trie) return NULL; @@ -70,7 +69,8 @@ trie_subnode (trienode_t *node, int id) subnode = node->subnodes[id]; if (!subnode) { - subnode = GF_CALLOC (1, sizeof (*subnode), gf_trie_mt_node); + subnode = GF_CALLOC (1, sizeof (*subnode), + gf_common_mt_trie_node); if (!subnode) return NULL; @@ -202,7 +202,7 @@ trienode_get_word (trienode_t *node, char **bufp) { char *buf = NULL; - buf = GF_CALLOC (1, node->depth + 1, gf_trie_mt_buf); + buf = GF_CALLOC (1, node->depth + 1, gf_common_mt_trie_buf); if (!buf) return -1; *bufp = buf; @@ -226,7 +226,8 @@ calc_dist (trienode_t *node, void *data) word = data; - node->data = GF_CALLOC (node->trie->len, sizeof (int), gf_trie_mt_data); + node->data = GF_CALLOC (node->trie->len, sizeof (int), + gf_common_mt_trie_data); if (!node->data) return -1; row = node->data; -- cgit