summaryrefslogtreecommitdiff
path: root/ace/Pipe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Pipe.cpp')
-rw-r--r--ace/Pipe.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/ace/Pipe.cpp b/ace/Pipe.cpp
index 3d91ce9ecce..9a94c458130 100644
--- a/ace/Pipe.cpp
+++ b/ace/Pipe.cpp
@@ -19,8 +19,6 @@
ACE_RCSID(ace, Pipe, "$Id$")
-ACE_BEGIN_VERSIONED_NAMESPACE_DECL
-
void
ACE_Pipe::dump (void) const
{
@@ -46,14 +44,9 @@ ACE_Pipe::open (int buffer_size)
ACE_SOCK_Stream reader;
ACE_SOCK_Stream writer;
int result = 0;
-# if defined (ACE_WIN32)
- ACE_INET_Addr local_any (static_cast<u_short> (0), ACE_LOCALHOST);
-# else
- ACE_Addr local_any = ACE_Addr::sap_any;
-# endif /* ACE_WIN32 */
// Bind listener to any port and then find out what the port was.
- if (acceptor.open (local_any) == -1
+ if (acceptor.open (ACE_Addr::sap_any) == -1
|| acceptor.get_local_addr (my_addr) == -1)
result = -1;
else
@@ -340,5 +333,3 @@ ACE_Pipe::recv (size_t n, ...) const
va_end (argp);
return result;
}
-
-ACE_END_VERSIONED_NAMESPACE_DECL