From b7b0f5404757b0de080d71b92a4b45388276e450 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 11 Sep 2008 23:45:09 +0000 Subject: Remove useless parameter. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10524 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index fdb1dcf67..2d967d5e6 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -96,12 +96,12 @@ void BufferedSocket::WantWrite() this->Instance->SE->WantWrite(this); } -void BufferedSocket::SetQueues(int nfd) +void BufferedSocket::SetQueues() { // attempt to increase socket sendq and recvq as high as its possible int sendbuf = 32768; int recvbuf = 32768; - if(setsockopt(nfd,SOL_SOCKET,SO_SNDBUF,(const char *)&sendbuf,sizeof(sendbuf)) || setsockopt(nfd,SOL_SOCKET,SO_RCVBUF,(const char *)&recvbuf,sizeof(sendbuf))) + if(setsockopt(this->fd,SOL_SOCKET,SO_SNDBUF,(const char *)&sendbuf,sizeof(sendbuf)) || setsockopt(this->fd,SOL_SOCKET,SO_RCVBUF,(const char *)&recvbuf,sizeof(sendbuf))) { //this->Instance->Log(DEFAULT, "Could not increase SO_SNDBUF/SO_RCVBUF for socket %u", GetFd()); ; // do nothing. I'm a little sick of people trying to interpret this message as a result of why their incorrect setups don't work. @@ -285,7 +285,7 @@ bool BufferedSocket::DoConnect(unsigned long maxtime) this->state = I_ERROR; return false; } - this->SetQueues(this->fd); + this->SetQueues(); } Instance->Logs->Log("SOCKET", DEBUG,"BufferedSocket::DoConnect success"); -- cgit v1.2.3