From 6c99e978861b6b0bd0a50d7e7190e3fbdaf7aacf Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 20 Dec 2007 04:45:24 +0000 Subject: formatting --- src/daemon/memorypool.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/daemon/memorypool.c') diff --git a/src/daemon/memorypool.c b/src/daemon/memorypool.c index 1bb12bae..e58cab38 100644 --- a/src/daemon/memorypool.c +++ b/src/daemon/memorypool.c @@ -191,24 +191,21 @@ MHD_pool_reallocate (struct MemoryPool *pool, /** * Clear all entries from the memory pool except * for "keep" of the given "size". - * + * * @param keep pointer to the entry to keep (maybe NULL) * @param size how many bytes need to be kept at this address * @return addr new address of "keep" (if it had to change) */ -void *MHD_pool_reset(struct MemoryPool * pool, - void * keep, - unsigned int size) +void * +MHD_pool_reset (struct MemoryPool *pool, void *keep, unsigned int size) { if (keep != NULL) { if (keep != pool->memory) - { - memmove(pool->memory, - keep, - size); - keep = pool->memory; - } + { + memmove (pool->memory, keep, size); + keep = pool->memory; + } pool->pos = size; } pool->end = pool->size; -- cgit v1.2.3