From d29ca254a4a9062ecaffe9395454f3a654d4e06a Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 21 Jan 2010 20:47:02 +0000 Subject: Remove unneeded save of errno git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12309 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 5099df882..652799b9c 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -118,11 +118,6 @@ BufferedSocketError BufferedSocket::BeginConnect(const irc::sockets::sockaddrs& void StreamSocket::Close() { - /* Save this, so we dont lose it, - * otherise on failure, error messages - * might be inaccurate. - */ - int save = errno; if (this->fd > -1) { if (IOHook) @@ -142,7 +137,6 @@ void StreamSocket::Close() ServerInstance->SE->Close(this); fd = -1; } - errno = save; } CullResult StreamSocket::cull() -- cgit v1.2.3