From d77d7e32db4705b7888239bb1fcec2b070e3cd43 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 27 Mar 2012 14:15:19 +1030 Subject: [PATCH] alloc: fix return of void. Sun CC complains. --- ccan/alloc/alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccan/alloc/alloc.c b/ccan/alloc/alloc.c index e6f21f88..47a59709 100644 --- a/ccan/alloc/alloc.c +++ b/ccan/alloc/alloc.c @@ -773,7 +773,8 @@ void alloc_free(void *pool, unsigned long poolsize, void *free) struct page_header *ph; if (poolsize < MIN_USEFUL_SIZE) { - return tiny_alloc_free(pool, poolsize, free); + tiny_alloc_free(pool, poolsize, free); + return; } /* Get page header. */ -- 2.39.2