Skip to content

Commit

Permalink
Revert "...and also fix a mismatched prototype"
Browse files Browse the repository at this point in the history
This reverts commit 6555120.
  • Loading branch information
weinhold committed Jun 18, 2014
1 parent 4c235c7 commit a05da9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion headers/private/net/DynamicBuffer.h
Expand Up @@ -26,7 +26,7 @@ class DynamicBuffer : public BDataIO {

// Insert data at the end of the buffer. The buffer will be increased to
// accomodate the data if needed.
ssize_t Write(const void* data, size_t size);
status_t Write(const void* data, size_t size);

// Remove data from the start of the buffer. Move the buffer start
// pointer to point to the data following it.
Expand Down
4 changes: 2 additions & 2 deletions src/kits/network/libnetapi/DynamicBuffer.cpp
Expand Up @@ -67,7 +67,7 @@ DynamicBuffer::InitCheck() const
}


ssize_t
status_t
DynamicBuffer::Write(const void* data, size_t size)
{
if (fInit != B_OK)
Expand All @@ -80,7 +80,7 @@ DynamicBuffer::Write(const void* data, size_t size)
memcpy(fBuffer + fDataEnd, data, size);
fDataEnd += size;

return size;
return B_OK;
}


Expand Down

0 comments on commit a05da9f

Please sign in to comment.