From 83cec868b20841b81fd0c3b59d8e98c81f5608ea Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 22 Feb 2000 04:04:41 +0000 Subject: Tweak in lexical analysis. svn path=/trunk/; revision=2764 --- socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 9501b1eb..3040a5fe 100644 --- a/socket.c +++ b/socket.c @@ -669,7 +669,7 @@ int SockClose(int sock) * This stops sends but allows receives (effectively, it sends a * TCP ). */ - if (shutdown(sock, 1) == SUCCESS) + if (shutdown(sock, 1) == 0) /* If there is any data still waiting in the queue, discard it. * Call recv() until either it returns 0 (meaning we received a FIN) * or any error occurs. This makes sure all data sent by the other -- cgit v1.2.3