From 800f02e7599d5f90d1c16f02cb1c28901d354140 Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 13 Nov 2009 20:23:11 +0000 Subject: 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 --- src/listensocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/listensocket.cpp') diff --git a/src/listensocket.cpp b/src/listensocket.cpp index 676898647..f0daf8ef0 100644 --- a/src/listensocket.cpp +++ b/src/listensocket.cpp @@ -36,7 +36,7 @@ ListenSocket::ListenSocket(ConfigTag* tag, const std::string& addr, int port) if (this->fd > -1) { ServerInstance->SE->SetReuse(fd); - int rv = ServerInstance->SE->Bind(this->fd, &bind_to.sa, sizeof(bind_to)); + int rv = ServerInstance->SE->Bind(this->fd, bind_to); if (rv >= 0) rv = ServerInstance->SE->Listen(this->fd, ServerInstance->Config->MaxConn); -- cgit v1.2.3