commit dcbd30134ea90c5392fae5944f4ff61dd17722cc parent d90f00c4eb6d79987829cfe81ea72246dbf3ba7d Author: sin <sin@2f30.org> Date: Thu, 1 Aug 2013 16:42:52 +0100 Rename mmap_pages() to alloc_block() Diffstat:
M | random/alloc.c | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/random/alloc.c b/random/alloc.c @@ -27,8 +27,10 @@ struct chunk { static int ndebug = 0; +/* Allocate a memory block. Round `siz' to be + * a multiple of PAGESIZE */ static void * -mmap_pages(size_t nbytes) +alloc_block(size_t nbytes) { void *addr; int ret; @@ -59,7 +61,7 @@ malloc(size_t nbytes) if (!nbytes) return NULL; - p = mmap_pages(nbytes); + p = alloc_block(nbytes); if (!p) return NULL; for (i = 0; i < NALLOC; i++) {