From 426368db9d57376a47393cf22504f1d71b4ce0d8 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 23 May 2005 18:08:58 +0000 Subject: Code tidyup git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1477 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3