summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-21 20:47:02 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-01-21 20:47:02 +0000
commitd29ca254a4a9062ecaffe9395454f3a654d4e06a (patch)
treeb4af3499f3e3a341f1fcadaf21228b592a84dd78 /src/inspsocket.cpp
parent8a11f8ecddaaf6c8162d93a28d924fe0b566332c (diff)
Remove unneeded save of errno
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12309 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp6
1 files changed, 0 insertions, 6 deletions
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()