From 200ec0269e02ee0f2372b0f8db8bee2eb33cdf75 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Sat, 14 Aug 2004 01:24:57 +0000 Subject: [PATCH] Remove const that breaks binary compatibility (const are mangled too). Thanks axeld to point at them. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8569 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/net/NetEndpoint.h | 6 +++--- src/kits/network/libnetapi/NetEndpoint.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/headers/os/net/NetEndpoint.h b/headers/os/net/NetEndpoint.h index ed012315b9..d12da0404a 100644 --- a/headers/os/net/NetEndpoint.h +++ b/headers/os/net/NetEndpoint.h @@ -62,7 +62,7 @@ public: /* * It is important to call InitCheck() after creating an instance of this class. */ - status_t InitCheck() const; + status_t InitCheck(); /* @@ -105,8 +105,8 @@ public: * BNetEndpoint. RemoteAddr() returns a BNetAddress corresponding to the address of * the remote peer we are connected to, if using a connected stream protocol. */ - const BNetAddress & LocalAddr() const; - const BNetAddress & RemoteAddr() const; + const BNetAddress & LocalAddr(); + const BNetAddress & RemoteAddr(); /* * BNetEndpoint::Socket() returns the actual socket used for data communications. diff --git a/src/kits/network/libnetapi/NetEndpoint.cpp b/src/kits/network/libnetapi/NetEndpoint.cpp index 6370b26299..072aabd5bf 100644 --- a/src/kits/network/libnetapi/NetEndpoint.cpp +++ b/src/kits/network/libnetapi/NetEndpoint.cpp @@ -157,7 +157,7 @@ BArchivable *BNetEndpoint::Instantiate(BMessage *archive) // #pragma mark - -status_t BNetEndpoint::InitCheck() const +status_t BNetEndpoint::InitCheck() { return m_init; } @@ -169,13 +169,13 @@ int BNetEndpoint::Socket() const } -const BNetAddress & BNetEndpoint::LocalAddr() const +const BNetAddress & BNetEndpoint::LocalAddr() { return m_addr; } -const BNetAddress & BNetEndpoint::RemoteAddr() const +const BNetAddress & BNetEndpoint::RemoteAddr() { return m_peer; }