struct pool_extent *next;
};
-#define MINALIGN (sizeof (void *))
+#define MINALIGN (sizeof (long))
alloc_pool_t
pool_create(size_t size, size_t quantum,
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)
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;
}
}
-