diff options
author | msvensson@shellback.(none) <> | 2006-09-15 14:27:45 +0200 |
---|---|---|
committer | msvensson@shellback.(none) <> | 2006-09-15 14:27:45 +0200 |
commit | c4177ec484535e6ea36cf27dde12bb4d13bd1986 (patch) | |
tree | 620174266a96aaaa1abb6d7633daac6a5195e62e /vio | |
parent | cb08c534a0a0e0f069acd170cd20623364f4ce7c (diff) | |
download | mariadb-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.c | 2 |
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; |