diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-10-03 18:56:36 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-10-03 18:56:36 +0200 |
commit | 80d95d663483177751929b5302c68b20ae0913ec (patch) | |
tree | e44f16c0f606859e8963d286cdd88b25a7c9d722 /lib/alloc | |
parent | 5849e4ecf88781c6a919ade0102b85c572311940 (diff) |
Use spaces for alignment
Diffstat (limited to 'lib/alloc')
-rw-r--r-- | lib/alloc/arena_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |