Automatic whitespace cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42008 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2011-06-07 16:20:18 +00:00
parent ebf7c28a0b
commit ace7983115

View File

@ -58,24 +58,24 @@ BNetEndpoint::BNetEndpoint(BMessage* archive)
in_addr addr, peer;
unsigned short addrPort = 0, peerPort = 0;
fStatus = archive->FindInt32("_BNetEndpoint_addr_addr",
fStatus = archive->FindInt32("_BNetEndpoint_addr_addr",
(int32 *)&addr.s_addr);
if (fStatus == B_OK) {
fStatus = archive->FindInt16("_BNetEndpoint_addr_port",
fStatus = archive->FindInt16("_BNetEndpoint_addr_port",
(int16 *)&addrPort);
if (fStatus == B_OK)
fStatus = fAddr.SetTo(addr, addrPort);
}
fStatus = archive->FindInt32("_BNetEndpoint_peer_addr",
fStatus = archive->FindInt32("_BNetEndpoint_peer_addr",
(int32 *)&peer.s_addr);
if (fStatus == B_OK) {
fStatus = archive->FindInt16("_BNetEndpoint_peer_port",
fStatus = archive->FindInt16("_BNetEndpoint_peer_port",
(int16 *)&peerPort);
if (fStatus == B_OK)
fStatus = fPeer.SetTo(peer, peerPort);
}
fStatus = archive->FindInt64("_BNetEndpoint_timeout", (int64 *)&fTimeout);
if (fStatus == B_OK)
fStatus = archive->FindInt32("_BNetEndpoint_proto", (int32 *)&fType);
@ -110,7 +110,7 @@ BNetEndpoint::operator=(const BNetEndpoint& endpoint)
{
if (this == &endpoint)
return *this;
Close();
fStatus = endpoint.fStatus;
@ -455,7 +455,7 @@ BNetEndpoint::Accept(int32 timeout)
bool
BNetEndpoint::IsDataPending(bigtime_t timeout)
{
{
struct timeval tv;
fd_set fds;
@ -609,13 +609,13 @@ status_t BNetEndpoint::InitCheck()
}
const BNetAddress& BNetEndpoint::LocalAddr()
const BNetAddress& BNetEndpoint::LocalAddr()
{
return const_cast<const BNetEndpoint*>(this)->LocalAddr();
}
const BNetAddress& BNetEndpoint::RemoteAddr()
const BNetAddress& BNetEndpoint::RemoteAddr()
{
return const_cast<const BNetEndpoint*>(this)->RemoteAddr();
}