From 80d95d663483177751929b5302c68b20ae0913ec Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 3 Oct 2024 18:56:36 +0200 Subject: Use spaces for alignment --- lib/alloc/arena_alloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/alloc/arena_alloc.c b/lib/alloc/arena_alloc.c index 1321259..16fd758 100644 --- a/lib/alloc/arena_alloc.c +++ b/lib/alloc/arena_alloc.c @@ -25,14 +25,14 @@ struct arena_blk { static void *alloc(allocator_t mem, ptrdiff_t nmemb, ptrdiff_t elemsz, ptrdiff_t align); static void *resize(allocator_t mem, void *ptr, ptrdiff_t oldnmemb, - ptrdiff_t newnmemb, ptrdiff_t elemsz, ptrdiff_t align); + ptrdiff_t newnmemb, ptrdiff_t elemsz, ptrdiff_t align); static void freeall(allocator_t mem); static arena_blk_t *mkblk(ptrdiff_t blksz); [[noreturn]] static void errjmp(jmp_buf *env); void * arena_alloc(allocator_t mem, alloc_mode_t mode, void *ptr, ptrdiff_t oldnmemb, - ptrdiff_t newnmemb, ptrdiff_t elemsz, ptrdiff_t align) + ptrdiff_t newnmemb, ptrdiff_t elemsz, ptrdiff_t align) { switch (mode) { case ALLOC_NEW: @@ -181,7 +181,7 @@ mkblk(ptrdiff_t blksz) arena_blk_t blk; /* blk.next and blk.fngr get set by the caller */ blk.head = mmap(nullptr, blksz, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_ANON, -1, 0); + MAP_PRIVATE | MAP_ANON, -1, 0); if (blk.head == MAP_FAILED) return nullptr; blk.tail = blk.head + blksz; -- cgit v1.2.3