summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authormsvensson@shellback.(none) <>2006-09-15 14:27:45 +0200
committermsvensson@shellback.(none) <>2006-09-15 14:27:45 +0200
commitc4177ec484535e6ea36cf27dde12bb4d13bd1986 (patch)
tree620174266a96aaaa1abb6d7633daac6a5195e62e /vio
parentcb08c534a0a0e0f069acd170cd20623364f4ce7c (diff)
downloadmariadb-git-c4177ec484535e6ea36cf27dde12bb4d13bd1986.tar.gz
Use the enum/define SHUT_RDWR instead of heardcoded "2" to shutdown
Diffstat (limited to 'vio')
-rw-r--r--vio/viosocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c
index 1f348c3313d..1ab3ae2fba0 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -276,7 +276,7 @@ int vio_close(Vio * vio)
if (vio->type != VIO_CLOSED)
{
DBUG_ASSERT(vio->sd >= 0);
- if (shutdown(vio->sd,2))
+ if (shutdown(vio->sd, SHUT_RDWR))
r= -1;
if (closesocket(vio->sd))
r= -1;