diff libnnchat.c @ 64:6a3a917303e4

Some random cleanups, bring back WinSock support.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 11 Nov 2008 22:33:35 +0200
parents ff5d74f0d428
children e763ef5cfd53
line wrap: on
line diff
--- a/libnnchat.c	Tue Nov 11 22:06:07 2008 +0200
+++ b/libnnchat.c	Tue Nov 11 22:33:35 2008 +0200
@@ -51,7 +51,11 @@
 void closeConnection(const int sock)
 {
 	if (sock >= 0) {
+#ifdef __WIN32
+		closesocket(sock);
+#else
 		close(sock);
+#endif
 	}
 }