From ac0c3567053901b65c8413929aa53aa78efb51e9 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Wed, 5 Mar 2025 23:39:31 -0500 Subject: fix typo in malloc backend --- zone.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone.h b/zone.h index 2525898..00d788d 100644 --- a/zone.h +++ b/zone.h @@ -11,8 +11,8 @@ #define ZONE_BACKEND ZONE_USE_MALLOC #endif #endif -#define ZONE_USE_MALLOC 0 -#define ZONE_USE_MMAP 1 +#define ZONE_USE_MALLOC 0 +#define ZONE_USE_MMAP 1 typedef struct ZoneFrame ZoneFrame; struct ZoneFrame { @@ -83,7 +83,7 @@ void *zn_zeroed(void *, size_t); #define ZONE_PAGE_SIZE (ZONE_PAGE_MULT * 4 * 1024) #define ZONE_PAGE_FAIL NULL - static void zn_pg_alloc(size_t n) { + static void *zn_pg_alloc(size_t n) { return malloc(n * ZONE_PAGE_SIZE); } static void zn_pg_free(void *p, size_t n) { -- cgit 1.4.1-2-gfad0