summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-23 18:08:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-23 18:08:58 +0000
commit426368db9d57376a47393cf22504f1d71b4ce0d8 (patch)
tree133152727a72e0e552313cca678fee2b0fb1d769 /src
parent5ced910478c16c8acb93c6f9bfc65886178e7dbe (diff)
Code tidyup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1477 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/users.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 493cbbade..8c7f1409b 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -61,7 +61,7 @@ userrec::userrec()
void userrec::CloseSocket()
{
- shutdown(this->fd);
+ shutdown(this->fd,2);
close(this->fd);
}
@@ -75,7 +75,7 @@ int userrec::ReadData(void* buffer, size_t size)
{
if (this->fd > -1)
{
- return read(this->fd, buffer, size)
+ return read(this->fd, buffer, size);
}
else return 0;
}