From 698a5fd9b0a86a9c413994c228ac87552f1d8c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 13 Oct 2003 02:22:51 +0000 Subject: [PATCH] Fixed compilation and warnings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5003 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kernel/boot/heap/heapTest.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/kernel/boot/heap/heapTest.cpp b/src/tests/kernel/boot/heap/heapTest.cpp index 2987add802..7a1e7fcc8b 100644 --- a/src/tests/kernel/boot/heap/heapTest.cpp +++ b/src/tests/kernel/boot/heap/heapTest.cpp @@ -16,7 +16,7 @@ extern "C" void *heap_malloc(size_t size); extern "C" void heap_free(void *buffer); extern void dump_chunks(void); -extern int32 heap_available(void); +extern uint32 heap_available(void); const int32 kHeapSize = 32 * 1024; @@ -25,7 +25,7 @@ int32 gVerbosity = 1; void -platform_release_heap(void *base) +platform_release_heap(struct stage2_args *args, void *base) { free(base); } @@ -141,6 +141,7 @@ main(int argc, char **argv) stage2_args args; memset(&args, 0, sizeof(args)); + args.heap_size = kHeapSize; if (heap_init(&args) < B_OK) { fprintf(stderr, "Could not initialize heap.\n"); @@ -243,7 +244,7 @@ main(int argc, char **argv) } } - heap_release(); + heap_release(&args); return 0; }