port the changes made to the libbe counterpart (r27297 and r27485)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27594 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2008-09-17 09:15:48 +00:00
parent 632f1504a8
commit 6dcce65687
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ public:
off_t Position() const;
status_t SetSize(off_t size);
status_t GetSize(off_t *size);
status_t GetSize(off_t *size) const;
off_t Offset() const;

View File

@ -16,7 +16,7 @@ namespace Storage {
// constructor
OffsetFile::OffsetFile()
: fFile(),
: fFile(NULL),
fOffset(0),
fCurrentPosition(0)
{
@ -145,7 +145,7 @@ OffsetFile::SetSize(off_t size)
// GetSize
status_t
OffsetFile::GetSize(off_t *size)
OffsetFile::GetSize(off_t *size) const
{
status_t error = (size ? B_OK : B_BAD_VALUE );
if (error == B_OK)