mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
Use the enum/define SHUT_RDWR instead of heardcoded "2" to shutdown
This commit is contained in:
parent
ef218ff99d
commit
3860571e95
2 changed files with 9 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue