aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-24 18:38:11 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-24 18:38:11 +0300
commit5dbf570b7df0e7c9770432884f95c14b193b5b30 (patch)
tree547448e51751b47179c46b19b9d26f2991642b30 /src/mem_pool.c
parent616e4a7d03fba715185f55d1298cc09377313591 (diff)
downloadrspamd-5dbf570b7df0e7c9770432884f95c14b193b5b30.tar.gz
rspamd-5dbf570b7df0e7c9770432884f95c14b193b5b30.zip
* Fix many compile time warnings and polish code
Diffstat (limited to 'src/mem_pool.c')
-rw-r--r--src/mem_pool.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mem_pool.c b/src/mem_pool.c
index db8e3f351..84ebe9a79 100644
--- a/src/mem_pool.c
+++ b/src/mem_pool.c
@@ -393,12 +393,10 @@ memory_pool_delete (memory_pool_t *pool)
void
memory_pool_stat (memory_pool_stat_t *st)
{
- if (stat) {
- st->bytes_allocated = mem_pool_stat->bytes_allocated;
- st->chunks_allocated = mem_pool_stat->chunks_allocated;
- st->shared_chunks_allocated = mem_pool_stat->shared_chunks_allocated;
- st->chunks_freed = mem_pool_stat->chunks_freed;
- }
+ st->bytes_allocated = mem_pool_stat->bytes_allocated;
+ st->chunks_allocated = mem_pool_stat->chunks_allocated;
+ st->shared_chunks_allocated = mem_pool_stat->shared_chunks_allocated;
+ st->chunks_freed = mem_pool_stat->chunks_freed;
}
#define FIXED_POOL_SIZE 4095