From bfa2a19d965b4808ad264b35acd7b09d6d0fc90f Mon Sep 17 00:00:00 2001 From: peavey Date: Sat, 10 Oct 2009 19:53:18 +0000 Subject: Slight tweak to setsockopt fix. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11824 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/socket.cpp b/src/socket.cpp index 0db7e1a6b..a4d1a7b79 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -97,8 +97,8 @@ int irc::sockets::OpenTCPSocket(const std::string& addr, int socktype) linger.l_onoff = 1; linger.l_linger = 1; #ifdef WINDOWS - setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, (char*)&on, sizeof(on)); - setsockopt(sockfd, SOL_SOCKET, SO_LINGER, (char*)&linger, sizeof(linger)); + insp_setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); + insp_setsockopt(sockfd, SOL_SOCKET, SO_LINGER, &linger, sizeof(linger)); #elif setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); setsockopt(sockfd, SOL_SOCKET, SO_LINGER, &linger, sizeof(linger)); -- cgit v1.2.3