diff options
author | WormHeamer | 2025-03-05 23:39:31 -0500 |
---|---|---|
committer | WormHeamer | 2025-03-05 23:39:31 -0500 |
commit | ac0c3567053901b65c8413929aa53aa78efb51e9 (patch) | |
tree | f76a0818f0365532becf79c2d37224e6c163833a | |
parent | 5e6e5c8ae47dbf5432bf03ce1057e1dc4ed45fef (diff) |
fix typo in malloc backend
-rw-r--r-- | zone.h | 6 |
1 files 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) { |