summary refs log tree commit diff
diff options
context:
space:
mode:
authorWormHeamer2025-03-05 23:39:31 -0500
committerWormHeamer2025-03-05 23:39:31 -0500
commitac0c3567053901b65c8413929aa53aa78efb51e9 (patch)
treef76a0818f0365532becf79c2d37224e6c163833a
parent5e6e5c8ae47dbf5432bf03ce1057e1dc4ed45fef (diff)
fix typo in malloc backend
-rw-r--r--zone.h6
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) {