Use the enum/define SHUT_RDWR instead of heardcoded "2" to shutdown

This commit is contained in:
unknown 2006-09-15 14:27:45 +02:00
commit 3860571e95
2 changed files with 9 additions and 9 deletions

View file

@ -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;