Fixed return type of read_partition_map (status_t -> bool). Fixed PartitionMapParser::Parse(): It wrongly error checked for a NULL block, which is allowed.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2819 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-02-24 00:39:27 +00:00
parent 19d8037692
commit 707fa51022

View File

@ -85,7 +85,7 @@ PartitionMapParser::~PartitionMapParser()
status_t
PartitionMapParser::Parse(const uint8 *block, PartitionMap *map)
{
status_t error = (block && map ? B_OK : B_BAD_VALUE);
status_t error = (map ? B_OK : B_BAD_VALUE);
if (error == B_OK) {
fMap = map;
fMap->Unset();
@ -277,7 +277,7 @@ std_ops(int32 op, ...)
// read_partition_map
static
status_t
bool
read_partition_map(int deviceFD, const session_info *sessionInfo,
const uchar *block, PartitionMap *map)
{