From: Rusty Russell Date: Tue, 27 Mar 2012 03:45:19 +0000 (+1030) Subject: alloc: fix return of void. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=d77d7e32db4705b7888239bb1fcec2b070e3cd43 alloc: fix return of void. Sun CC complains. --- 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. */