From 8bce4da9eea3edd84fb74484a66d450cbcaa9cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 8 Nov 2004 11:15:07 +0000 Subject: [PATCH] Replaced vm_find_region_by_name() with find_area(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9846 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/vm/vm_tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kernel/core/vm/vm_tests.c b/src/kernel/core/vm/vm_tests.c index ce4b964571..131b33f29a 100755 --- a/src/kernel/core/vm/vm_tests.c +++ b/src/kernel/core/vm/vm_tests.c @@ -100,7 +100,7 @@ vm_test(void) void *ptr; int rc; - region = vm_find_region_by_name(vm_get_kernel_aspace_id(), "vid_mem"); + region = find_area("vid_mem"); if(region < 0) panic("vm_test 4: error finding region 'vid_mem'\n"); dprintf("vid_mem region = 0x%lx\n", region); @@ -129,8 +129,8 @@ vm_test(void) void *ptr; int rc; - region = vm_find_region_by_name(vm_get_kernel_aspace_id(), "vid_mem"); - if(region < 0) + region = find_area("vid_mem"); + if (region < 0) panic("vm_test 5: error finding region 'vid_mem'\n"); dprintf("vid_mem region = 0x%lx\n", region);