diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-03-04 04:22:50 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-03-04 04:22:50 +0000 |
| commit | 226868507b7d81df9e779f8472b38dbf4c44d14f (patch) | |
| tree | fa264d419eac9d0880c45e67305eee47b79ff502 /cpp/src/qpid/sys/posix/Socket.cpp | |
| parent | 23b5cf86fe6ee3fe38281435b60db15c26d200fb (diff) | |
| download | qpid-python-226868507b7d81df9e779f8472b38dbf4c44d14f.tar.gz | |
QPID-1710 Removed unnecessary nonportable internal API
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@749894 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/posix/Socket.cpp')
| -rw-r--r-- | cpp/src/qpid/sys/posix/Socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/posix/Socket.cpp b/cpp/src/qpid/sys/posix/Socket.cpp index 415d5293ef..8e086c9a27 100644 --- a/cpp/src/qpid/sys/posix/Socket.cpp +++ b/cpp/src/qpid/sys/posix/Socket.cpp @@ -189,9 +189,9 @@ int Socket::listen(uint16_t port, int backlog) const return ntohs(name.sin_port); } -Socket* Socket::accept(struct sockaddr *addr, socklen_t *addrlen) const +Socket* Socket::accept() const { - int afd = ::accept(impl->fd, addr, addrlen); + int afd = ::accept(impl->fd, 0, 0); if ( afd >= 0) return new Socket(new IOHandlePrivate(afd)); else if (errno == EAGAIN) |
