diff options
author | mrcsys | 2006-01-19 18:00:19 +0000 |
---|---|---|
committer | mrcsys | 2006-01-19 18:00:19 +0000 |
commit | 71d63fe322877a20cfa1dda72fbbad0c14232ecc (patch) | |
tree | bdfdd2fee3d84ead2d82a303fe45ec3369f96b0c /nanohttp | |
parent | 3e17cfa6f481ef56b412e9d31c67c3ee8ab7bfb9 (diff) | |
download | csoap-71d63fe322877a20cfa1dda72fbbad0c14232ecc.tar.gz csoap-71d63fe322877a20cfa1dda72fbbad0c14232ecc.tar.bz2 |
Minor win32 fixes.
Diffstat (limited to 'nanohttp')
-rw-r--r-- | nanohttp/nanohttp-client.c | 4 | ||||
-rw-r--r-- | nanohttp/nanohttp-server.c | 4 | ||||
-rw-r--r-- | nanohttp/nanohttp-ssl.c | 4 |
3 files changed, 7 insertions, 5 deletions
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 <nanohttp/nanohttp-client.h> - +#include <nanohttp/nanohttp-ssl.h> #ifdef HAVE_CONFIG_H #include <config.h> 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 <sys/types.h> -#ifndef WIN32 -#include <netinet/in.h> #include <openssl/rand.h> #include <openssl/err.h> +#ifndef WIN32 +#include <netinet/in.h> #endif #if HAVE_INTTYPES_H #include <inttypes.h> |