Even more correct return value.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20856 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-04-27 10:47:21 +00:00
parent 93ed453113
commit 5b1cb74b86
2 changed files with 2 additions and 2 deletions

View File

@ -1071,7 +1071,7 @@ block_cache_sync_etc(void *_cache, off_t blockNumber, size_t numBlocks)
if (blockNumber < 0 || blockNumber >= cache->max_blocks) {
panic("block_cache_sync_etc: invalid block number %Ld (max %Ld)",
blockNumber, cache->max_blocks - 1);
return B_ERROR;
return B_BAD_VALUE;
}
BenaphoreLocker locker(&cache->lock);

View File

@ -1182,7 +1182,7 @@ block_cache_sync_etc(void *_cache, off_t blockNumber, size_t numBlocks)
if (blockNumber < 0 || blockNumber >= cache->max_blocks) {
panic("block_cache_sync_etc: invalid block number %Ld (max %Ld)",
blockNumber, cache->max_blocks - 1);
return B_ERROR;
return B_BAD_VALUE;
}
BenaphoreLocker locker(&cache->lock);