diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:16:49 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-20 08:16:49 -0700 |
commit | ad837700b86153be3587672124ee663c964f0f15 (patch) | |
tree | 7ec6e8fbe539a169d501a3d1767644b68fab2dab /src/util.c | |
parent | baeb17562f47dc31610c0f65079c45a7e6ad44bb (diff) | |
download | rspamd-ad837700b86153be3587672124ee663c964f0f15.tar.gz rspamd-ad837700b86153be3587672124ee663c964f0f15.zip |
Refactor memory pool naming.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.c b/src/util.c index 3db6a3fe1..d5a4a19df 100644 --- a/src/util.c +++ b/src/util.c @@ -971,7 +971,7 @@ rspamd_pidfile_remove (rspamd_pidfh_t *pfh) /* Replace %r with rcpt value and %f with from value, new string is allocated in pool */ gchar * -resolve_stat_filename (memory_pool_t * pool, gchar *pattern, gchar *rcpt, gchar *from) +resolve_stat_filename (rspamd_mempool_t * pool, gchar *pattern, gchar *rcpt, gchar *from) { gint need_to_format = 0, len = 0; gint rcptlen, fromlen; @@ -1014,7 +1014,7 @@ resolve_stat_filename (memory_pool_t * pool, gchar *pattern, gchar *rcpt, gchar } /* Allocate new string */ - new = memory_pool_alloc (pool, len); + new = rspamd_mempool_alloc (pool, len); c = pattern; s = new; @@ -1961,9 +1961,9 @@ void rspamd_hash_table_copy (GHashTable *src, GHashTable *dst, gpointer rspamd_str_pool_copy (gconstpointer data, gpointer ud) { - memory_pool_t *pool = ud; + rspamd_mempool_t *pool = ud; - return data ? memory_pool_strdup (pool, data) : NULL; + return data ? rspamd_mempool_strdup (pool, data) : NULL; } gboolean |