From: Laurent Mazet Date: Mon, 15 May 2023 12:26:31 +0000 (+0200) Subject: fixes for windows X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=7a6b7a44a3106604a181873a070a6242133a6d65;p=webserver.git fixes for windows --- diff --git a/server.c b/server.c index 4f3b24f..cc7f4cd 100644 --- a/server.c +++ b/server.c @@ -19,6 +19,7 @@ //#include #include #endif +#include #include "debug.h" @@ -82,7 +83,7 @@ socket_t open_listening_socket (int port) } struct sockaddr_in addr = {0}; - bzero (&addr, sizeof (addr)); + //bzero (&addr, sizeof (addr)); //addr.sin_family = PF_INET; addr.sin_family = AF_INET; addr.sin_port = htons (port); diff --git a/webserver.c b/webserver.c index 5de4db8..7a5090a 100644 --- a/webserver.c +++ b/webserver.c @@ -134,6 +134,7 @@ int main (int argc, char *argv[]) } else { // processing + VERBOSE (DEBUG, fprintf (stdout, "Received:\n%s\n", data)); int rc = send_data (conn, data, len); if (rc == 0) {