]> git.ozlabs.org Git - ccan/commitdiff
alloc: fix return of void.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 03:45:19 +0000 (14:15 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 27 Mar 2012 03:45:19 +0000 (14:15 +1030)
Sun CC complains.

ccan/alloc/alloc.c

index e6f21f887e1a756c29667615db064db246259e80..47a597091d5a1df8f056a234298a48d143522c4c 100644 (file)
@@ -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. */