X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/7efdcf3218fe580476608f3b3c53bce35fc5a2a9..15f85b1f63435a659aeee44784a86bb34c5c43c2:/lib/pool_alloc.c diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c index acb356a9..9eff5294 100644 --- a/lib/pool_alloc.c +++ b/lib/pool_alloc.c @@ -85,7 +85,8 @@ pool_destroy(alloc_pool_t p) free(pool); } -void *pool_alloc(alloc_pool_t p, size_t len, char *bomb) +void * +pool_alloc(alloc_pool_t p, size_t len, char *bomb) { struct alloc_pool *pool = (struct alloc_pool *) p; if (!pool) @@ -287,11 +288,8 @@ pool_stats(alloc_pool_t p, int fd, int summarize) strcpy(buf, " FREE BOUND\n"); write(fd, buf, strlen(buf)); - cur = pool->free; - while (cur) + for (cur = pool->free; cur; cur = cur->next) { FDEXTSTAT(cur); - cur = cur->next; } } -