Misc style changes

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14575 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2005-10-30 09:34:32 +00:00
parent 338b8dc301
commit fd8b9c0dd9
3 changed files with 293 additions and 311 deletions
+6 -9
View File
@@ -28,7 +28,6 @@
// BMallocIO and BMemoryIO classes implement the protocol,
// as does BFile in the Storage Kit.
//------------------------------------------------------------------------------
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -251,17 +250,15 @@ BMemoryIO::Position() const
status_t
BMemoryIO::SetSize(off_t size)
{
status_t err = B_ERROR;
if (fReadOnly)
return B_NOT_ALLOWED;
if (size <= fPhys) {
err = B_OK;
fLen = size;
}
return err;
if (size > fPhys)
return B_ERROR;
fLen = size;
return B_OK;
}