From c200dd832789afa298ba45e0b9efdec96c0e92cc Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sun, 5 Dec 2021 11:55:10 -0800 Subject: Chore: simplified allocator interfaces. I was never happy with the allocator/reallocator split. It was originally designed to accomodate things like arenas that don't free. But the majority of the time you don't care about this. --- src/base/fs/walk.c | 2 +- src/base/fs/walker.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/base/fs') diff --git a/src/base/fs/walk.c b/src/base/fs/walk.c index 4b0d0aa..612aca8 100644 --- a/src/base/fs/walk.c +++ b/src/base/fs/walk.c @@ -6,7 +6,7 @@ static int morehistory(fs·History *h, int n) { - SET_GROW(h, struct Key, n, hash, sys·Memory, nil); + SET_GROW(h, struct Key, n, hash, base·Memory, nil); } static int diff --git a/src/base/fs/walker.c b/src/base/fs/walker.c index d988d13..0a0f61e 100644 --- a/src/base/fs/walker.c +++ b/src/base/fs/walker.c @@ -3,7 +3,7 @@ static void delete(fs·History *h) { - SET_FREE(h, sys·Memory, nil); + SET_FREE(h, base·Memory, nil); } int -- cgit v1.2.1