From 71d63fe322877a20cfa1dda72fbbad0c14232ecc Mon Sep 17 00:00:00 2001 From: mrcsys Date: Thu, 19 Jan 2006 18:00:19 +0000 Subject: Minor win32 fixes. --- nanohttp/nanohttp-client.c | 4 ++-- nanohttp/nanohttp-server.c | 4 +++- nanohttp/nanohttp-ssl.c | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'nanohttp') diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c index 6f7d864..c559b26 100644 --- a/nanohttp/nanohttp-client.c +++ b/nanohttp/nanohttp-client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-client.c,v 1.34 2006/01/18 14:53:13 mrcsys Exp $ +* $Id: nanohttp-client.c,v 1.35 2006/01/19 18:00:19 mrcsys Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -22,7 +22,7 @@ * Email: ferhatayaz@yahoo.com ******************************************************************/ #include - +#include #ifdef HAVE_CONFIG_H #include diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c index 0e6832e..e9504f6 100644 --- a/nanohttp/nanohttp-server.c +++ b/nanohttp/nanohttp-server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-server.c,v 1.45 2006/01/18 16:28:24 mrcsys Exp $ +* $Id: nanohttp-server.c,v 1.46 2006/01/19 18:00:19 mrcsys Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -415,6 +415,8 @@ httpd_new (hsocket_t sock) void httpd_free (httpd_conn_t * conn) { + if(!conn) + return; if (conn->out != NULL) http_output_stream_free (conn->out); diff --git a/nanohttp/nanohttp-ssl.c b/nanohttp/nanohttp-ssl.c index a2cdf17..e1139ac 100644 --- a/nanohttp/nanohttp-ssl.c +++ b/nanohttp/nanohttp-ssl.c @@ -25,10 +25,10 @@ #ifdef HAVE_SSL #include -#ifndef WIN32 -#include #include #include +#ifndef WIN32 +#include #endif #if HAVE_INTTYPES_H #include -- cgit v1.1-32-gdbae