From: Laurent Mazet Date: Tue, 16 May 2023 16:30:00 +0000 (+0200) Subject: fix for windows X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=045cbd6ea578106201096c51a3822ddcc94cde5d;p=webserver.git fix for windows --- diff --git a/server.c b/server.c index 56b07cc..574e54a 100644 --- a/server.c +++ b/server.c @@ -133,7 +133,7 @@ socket_t open_listening_socket (int port) socket_t accept_incoming_connection (socket_t sock) { socket_t connection = accept (sock, NULL, 0); - if (connection < 0) { + if (connection == INVALID_SOCKET) { return INVALID_SOCKET; }