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