summaryrefslogtreecommitdiff
path: root/mem/framer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mem/framer.c')
-rw-r--r--mem/framer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mem/framer.c b/mem/framer.c
index 9a66feb..dbd8c9a 100644
--- a/mem/framer.c
+++ b/mem/framer.c
@@ -23,9 +23,9 @@ MemFramer *mem_framer_install(void *addr, usize end, uint blksz) {
void *mem_framer_alloc(MemAllocator *inner, usize n) {
/* When allocating a frame, we have two paths:
1. The freelist is not empty: give away
- the last freed frame
- 2. The freelist is empty: bump away the next
- frame (pointed at by the next member)
+ the last freed frame
+ 2. The freelist is empty: bump away the next
+ frame (pointed at by the next member)
The alloc must fail the freelist is empty and that
the next is beyond the end of the region */
@@ -53,7 +53,7 @@ void *mem_framer_alloc(MemAllocator *inner, usize n) {
void mem_framer_free(MemAllocator *inner, void *ptr) {
/* NOTE: this implementation does make the assumption
that the given pointer is the base of the allocated
- region without correction */
+ region without correction */
MemFramer *self = (MemFramer*)inner;