Compiler warning fixes. No functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37270 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Wim van der Meer
2010-06-27 05:49:19 +00:00
parent 23c0ae0362
commit f1143621ca
2 changed files with 10 additions and 10 deletions
@@ -114,7 +114,7 @@ ExtendedPartitionAddOn::ValidateInitialize(const BMutablePartition* partition,
BString* name, const char* parameters)
{
if (!CanInitialize(partition)
|| parameters != NULL && strlen(parameters) > 0) {
|| (parameters != NULL && strlen(parameters) > 0)) {
return B_BAD_VALUE;
}
@@ -132,8 +132,8 @@ ExtendedPartitionAddOn::Initialize(BMutablePartition* partition,
const char* name, const char* parameters, BPartitionHandle** _handle)
{
if (!CanInitialize(partition)
|| name != NULL && strlen(name) > 0
|| parameters != NULL && strlen(parameters) > 0) {
|| (name != NULL && strlen(name) > 0)
|| (parameters != NULL && strlen(parameters) > 0)) {
return B_BAD_VALUE;
}
@@ -374,8 +374,8 @@ ExtendedPartitionHandle::ValidateCreateChild(off_t* _offset, off_t* _size,
info.GetPartitionableSpaceAt(i, &spaceOffset, &spaceSize);
off_t spaceEnd = spaceOffset + spaceSize;
if (spaceOffset >= offset && spaceOffset < end
|| offset >= spaceOffset && offset < spaceEnd) {
if ((spaceOffset >= offset && spaceOffset < end)
|| (offset >= spaceOffset && offset < spaceEnd)) {
spaceIndex = i;
break;
}
@@ -114,7 +114,7 @@ PartitionMapAddOn::ValidateInitialize(const BMutablePartition* partition,
BString* name, const char* parameters)
{
if (!CanInitialize(partition)
|| parameters != NULL && strlen(parameters) > 0) {
|| (parameters != NULL && strlen(parameters) > 0)) {
return B_BAD_VALUE;
}
@@ -132,8 +132,8 @@ PartitionMapAddOn::Initialize(BMutablePartition* partition, const char* name,
const char* parameters, BPartitionHandle** _handle)
{
if (!CanInitialize(partition)
|| name != NULL && strlen(name) > 0
|| parameters != NULL && strlen(parameters) > 0) {
|| (name != NULL && strlen(name) > 0)
|| (parameters != NULL && strlen(parameters) > 0)) {
return B_BAD_VALUE;
}
@@ -382,8 +382,8 @@ PartitionMapHandle::ValidateCreateChild(off_t* _offset, off_t* _size,
info.GetPartitionableSpaceAt(i, &spaceOffset, &spaceSize);
off_t spaceEnd = spaceOffset + spaceSize;
if (spaceOffset >= offset && spaceOffset < end
|| offset >= spaceOffset && offset < spaceEnd) {
if ((spaceOffset >= offset && spaceOffset < end)
|| (offset >= spaceOffset && offset < spaceEnd)) {
spaceIndex = i;
break;
}