Browse Source

alloc: fix return of void.

Sun CC complains.
Rusty Russell 14 years ago
parent
commit
d77d7e32db
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ccan/alloc/alloc.c

+ 2 - 1
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. */