diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-11-13 20:23:11 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-11-13 20:23:11 +0000 |
commit | 800f02e7599d5f90d1c16f02cb1c28901d354140 (patch) | |
tree | 2da147749bca500bd751461133fbb4d405f3ea17 /src/socketengine.cpp | |
parent | c6140ba7048e0e1bc11bd827639953742d03e380 (diff) |
Get rid of socklen_t parameter to Bind, we are using C++ here and can do it other ways
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12129 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r-- | src/socketengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp index 478400d1b..b442732f5 100644 --- a/src/socketengine.cpp +++ b/src/socketengine.cpp @@ -197,9 +197,9 @@ int SocketEngine::Shutdown(EventHandler* fd, int how) return shutdown(fd->GetFd(), how); } -int SocketEngine::Bind(int fd, const sockaddr *my_addr, socklen_t addrlen) +int SocketEngine::Bind(int fd, const irc::sockets::sockaddrs& addr) { - return bind(fd, my_addr, addrlen); + return bind(fd, &addr.sa, addr.sa_size()); } int SocketEngine::Listen(int sockfd, int backlog) |