diff options
Diffstat (limited to 'nanohttp')
-rw-r--r-- | nanohttp/nanohttp-admin.c | 14 | ||||
-rw-r--r-- | nanohttp/nanohttp-client.c | 7 | ||||
-rwxr-xr-x | nanohttp/nanohttp-mime.c | 6 | ||||
-rwxr-xr-x | nanohttp/nanohttp-request.c | 4 | ||||
-rwxr-xr-x | nanohttp/nanohttp-response.c | 7 |
5 files changed, 31 insertions, 7 deletions
diff --git a/nanohttp/nanohttp-admin.c b/nanohttp/nanohttp-admin.c index 33f9bc0..6ca9255 100644 --- a/nanohttp/nanohttp-admin.c +++ b/nanohttp/nanohttp-admin.c @@ -1,5 +1,5 @@ - /****************************************************************** -* $Id: nanohttp-admin.c,v 1.1 2006/11/19 09:40:14 m0gg Exp $ +/****************************************************************** +* $Id: nanohttp-admin.c,v 1.2 2006/11/21 08:34:34 m0gg Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -33,6 +33,14 @@ #include <stdio.h> #endif +#ifdef HAVE_STRING_H +#include <string.h> +#endif + +#ifdef HAVE_PTHREAD_H +#include <pthread.h> +#endif + #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif @@ -44,6 +52,7 @@ #include "nanohttp-server.h" #include "nanohttp-admin.h" + static void _httpd_admin_send_title(httpd_conn_t *conn, const char *title) { @@ -66,6 +75,7 @@ _httpd_admin_send_title(httpd_conn_t *conn, const char *title) } +static void _httpd_admin_list_services(httpd_conn_t *conn) { char buffer[1024]; diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c index 10b16c2..a105b82 100644 --- a/nanohttp/nanohttp-client.c +++ b/nanohttp/nanohttp-client.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-client.c,v 1.42 2006/11/19 09:40:14 m0gg Exp $ +* $Id: nanohttp-client.c,v 1.43 2006/11/21 08:34:34 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -49,6 +49,10 @@ #include <string.h> #endif +#ifdef HAVE_TIME_H +#include <time.h> +#endif + #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> #endif @@ -128,7 +132,6 @@ httpc_free(httpc_conn_t * conn) if (conn == NULL) return; - while (conn->header != NULL) { tmp = conn->header; diff --git a/nanohttp/nanohttp-mime.c b/nanohttp/nanohttp-mime.c index cbea458..a853486 100755 --- a/nanohttp/nanohttp-mime.c +++ b/nanohttp/nanohttp-mime.c @@ -3,7 +3,7 @@ * | \/ | | | | \/ | | _/ * |_''_| |_| |_''_| |_'/ PARSER * -* $Id: nanohttp-mime.c,v 1.14 2006/11/19 09:40:14 m0gg Exp $ +* $Id: nanohttp-mime.c,v 1.15 2006/11/21 08:34:34 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -33,6 +33,10 @@ #include <stdio.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif + #ifdef HAVE_STRING_H #include <string.h> #endif diff --git a/nanohttp/nanohttp-request.c b/nanohttp/nanohttp-request.c index c7d159b..449bb7a 100755 --- a/nanohttp/nanohttp-request.c +++ b/nanohttp/nanohttp-request.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-request.c,v 1.15 2006/11/19 09:40:14 m0gg Exp $ +* $Id: nanohttp-request.c,v 1.16 2006/11/21 08:34:34 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -49,8 +49,10 @@ #include "nanohttp-common.h" #include "nanohttp-socket.h" #include "nanohttp-stream.h" +#include "nanohttp-mime.h" #include "nanohttp-request.h" + static hrequest_t * hrequest_new(void) { diff --git a/nanohttp/nanohttp-response.c b/nanohttp/nanohttp-response.c index d38056d..db2f897 100755 --- a/nanohttp/nanohttp-response.c +++ b/nanohttp/nanohttp-response.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-response.c,v 1.12 2006/11/19 09:40:14 m0gg Exp $ +* $Id: nanohttp-response.c,v 1.13 2006/11/21 08:34:34 m0gg Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003-2004 Ferhat Ayaz @@ -29,6 +29,10 @@ #include <stdio.h> #endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif + #ifdef HAVE_STRING_H #include <string.h> #endif @@ -45,6 +49,7 @@ #include "nanohttp-common.h" #include "nanohttp-socket.h" #include "nanohttp-stream.h" +#include "nanohttp-mime.h" #include "nanohttp-response.h" static hresponse_t * |