summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {