summaryrefslogtreecommitdiffstats
path: root/examples/nanohttp
diff options
context:
space:
mode:
authorGravatar m0gg2006-11-21 20:58:59 +0000
committerGravatar m0gg2006-11-21 20:58:59 +0000
commitc3fd98b25607d0f7f5977586d188f88ab226a9b8 (patch)
treecc4976a3be9d3984e4ae62c08afd1dcf9530dc5e /examples/nanohttp
parentcd94b25993049a596b163f0ad8b3a2340e024cc3 (diff)
downloadcsoap-c3fd98b25607d0f7f5977586d188f88ab226a9b8.tar.gz
csoap-c3fd98b25607d0f7f5977586d188f88ab226a9b8.tar.bz2
decoupling of nanohttp/libcsoap
Diffstat (limited to 'examples/nanohttp')
-rw-r--r--examples/nanohttp/http_client.c6
-rw-r--r--examples/nanohttp/http_server.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/examples/nanohttp/http_client.c b/examples/nanohttp/http_client.c
index d2ff4c9..4fa5bed 100644
--- a/examples/nanohttp/http_client.c
+++ b/examples/nanohttp/http_client.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: http_client.c,v 1.3 2006/11/19 09:40:14 m0gg Exp $
+* $Id: http_client.c,v 1.4 2006/11/21 20:59:02 m0gg Exp $
*
* CSOAP Project: A http client/server library in C (example)
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -22,8 +22,8 @@
* Email: hero@persua.de
******************************************************************/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
-#include <sys/time.h>
#include <netinet/in.h>
#include <nanohttp/nanohttp-common.h>
@@ -116,7 +116,7 @@ int main(int argc, char **argv) {
/* Initialize httpc module */
if (httpc_init(argc, argv)) {
- log_error1("Can not init httpc");
+ log_error1("Cannot init httpc");
exit(1);
}
diff --git a/examples/nanohttp/http_server.c b/examples/nanohttp/http_server.c
index 5801312..420c32f 100644
--- a/examples/nanohttp/http_server.c
+++ b/examples/nanohttp/http_server.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: http_server.c,v 1.5 2006/11/19 09:40:14 m0gg Exp $
+* $Id: http_server.c,v 1.6 2006/11/21 20:59:02 m0gg Exp $
*
* CSOAP Project: A http client/server library in C (example)
* Copyright (C) 2003 Ferhat Ayaz
@@ -21,7 +21,6 @@
*
* Email: hero@persua.de
******************************************************************/
-#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>