[haiku-commits] r37654 - haiku/trunk/src/tests/system/kernel/file_corruption/fs

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 21 Jul 2010 17:23:29 +0200 (CEST)

Author: bonefish
Date: 2010-07-21 17:23:29 +0200 (Wed, 21 Jul 2010)
New Revision: 37654
Changeset: http://dev.haiku-os.org/changeset/37654

Modified:
   haiku/trunk/src/tests/system/kernel/file_corruption/fs/Block.cpp
Log:
Get{Writable,Zero}(): Fixed return values. The type is bool not status_t.


Modified: haiku/trunk/src/tests/system/kernel/file_corruption/fs/Block.cpp
===================================================================
--- haiku/trunk/src/tests/system/kernel/file_corruption/fs/Block.cpp    
2010-07-21 15:16:36 UTC (rev 37653)
+++ haiku/trunk/src/tests/system/kernel/file_corruption/fs/Block.cpp    
2010-07-21 15:23:29 UTC (rev 37654)
@@ -44,7 +44,7 @@
 
        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 @@
 
        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,


Other related posts:

  • » [haiku-commits] r37654 - haiku/trunk/src/tests/system/kernel/file_corruption/fs - ingo_weinhold