From 4f5fe208bdf07155b5295a3d908db98a303bffe7 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Thu, 23 Dec 2010 09:24:21 +0300 Subject: move timestamp initialization to proper place --- accel-pptpd/triton/mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pptpd/triton') diff --git a/accel-pptpd/triton/mempool.c b/accel-pptpd/triton/mempool.c index 6559792..7c653e6 100644 --- a/accel-pptpd/triton/mempool.c +++ b/accel-pptpd/triton/mempool.c @@ -165,10 +165,10 @@ void __export *mempool_alloc_md(mempool_t *pool, const char *fname, int line) it->owner = p; it->magic2 = p->magic; it->magic1 = MAGIC1; - it->timestamp = 0; *(uint64_t*)(it->ptr + p->size) = it->magic2; list_add_tail(&it->entry,&p->items); #ifdef VALGRIND + it->timestamp = 0; VALGRIND_MAKE_MEM_NOACCESS(&it->owner, size - sizeof(it->entry) - sizeof(it->timestamp)); #endif it = (struct _item_t *)((char *)it + size); -- cgit v1.2.3