Fix gcc2 build.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40896 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2011-03-10 07:27:51 +00:00
parent 6467e4b16d
commit c3a1b99caf
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -95,7 +95,7 @@ status_t
BRawNetBuffer::ReadString(BString& string)
{
string = "";
size_t readed = _ReadStringAt(string, fReadPosition);
int32 readed = _ReadStringAt(string, fReadPosition);
if (readed < 0)
return B_ERROR;
fReadPosition += readed;
@@ -122,13 +122,13 @@ BRawNetBuffer::_Init(const void* buf, size_t size)
}
size_t
int32
BRawNetBuffer::_ReadStringAt(BString& string, off_t pos)
{
if (pos >= fBuffer.BufferLength())
return -1;
size_t readed = 0;
int32 readed = 0;
char* buffer = (char*)fBuffer.Buffer();
buffer = &buffer[pos];
// if the string is compressed we have to follow the links to the
+1 -1
View File
@@ -42,7 +42,7 @@ public:
private:
void _Init(const void* buf, size_t size);
size_t _ReadStringAt(BString& string, off_t pos);
int32 _ReadStringAt(BString& string, off_t pos);
off_t fWritePosition;
off_t fReadPosition;