From 4701667eb28ff895b6f2e4f1d83e668a4265721c Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 21 Jul 2010 15:23:29 +0000 Subject: [PATCH] Get{Writable,Zero}(): Fixed return values. The type is bool not status_t. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37654 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/system/kernel/file_corruption/fs/Block.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/system/kernel/file_corruption/fs/Block.cpp b/src/tests/system/kernel/file_corruption/fs/Block.cpp index 2c2455639d..d865ce2e3e 100644 --- a/src/tests/system/kernel/file_corruption/fs/Block.cpp +++ b/src/tests/system/kernel/file_corruption/fs/Block.cpp @@ -44,7 +44,7 @@ Block::GetWritable(Volume* volume, uint64 blockIndex, Transaction& transaction) status_t error = transaction.RegisterBlock(blockIndex); if (error != B_OK) - return error; + return false; return _Init(volume, blockIndex, block_cache_get_writable(volume->BlockCache(), blockIndex, @@ -60,7 +60,7 @@ Block::GetZero(Volume* volume, uint64 blockIndex, Transaction& transaction) status_t error = transaction.RegisterBlock(blockIndex); if (error != B_OK) - return error; + return false; return _Init(volume, blockIndex, block_cache_get_empty(volume->BlockCache(), blockIndex,