summaryrefslogtreecommitdiffstats
path: root/examples/nanohttp/http_client.c
diff options
context:
space:
mode:
authorGravatar snowdrop2006-07-09 16:24:18 +0000
committerGravatar snowdrop2006-07-09 16:24:18 +0000
commit8e94d40e90b5ed006090af64ff7017a2d4f1a802 (patch)
treed75f7d201eb5cf7236f2d0dc1ca18a44910eda49 /examples/nanohttp/http_client.c
parent1b6cc73eff4ecc9ec0b2be81841d495a3cb53fc9 (diff)
downloadcsoap-8e94d40e90b5ed006090af64ff7017a2d4f1a802.tar.gz
csoap-8e94d40e90b5ed006090af64ff7017a2d4f1a802.tar.bz2
ported logging function to a seperate file (nanohttp-logging.*)r1_1_0
and renamed all logging functions.
Diffstat (limited to 'examples/nanohttp/http_client.c')
-rw-r--r--examples/nanohttp/http_client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/nanohttp/http_client.c b/examples/nanohttp/http_client.c
index 8d827ba..c454fd7 100644
--- a/examples/nanohttp/http_client.c
+++ b/examples/nanohttp/http_client.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: http_client.c,v 1.1 2006/03/06 13:30:30 m0gg Exp $
+* $Id: http_client.c,v 1.2 2006/07/09 16:24:19 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C (example)
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <string.h>
+#include <nanohttp/nanohttp-logging.h>
#include <nanohttp/nanohttp-client.h>
#define MAX_BUFFER_SIZE 1024
@@ -103,7 +104,7 @@ int main(int argc, char **argv) {
}
/* Set log level to see more information written by the library */
- log_set_level(HLOG_INFO);
+ hlog_set_level(HLOG_INFO);
/* Initialize httpc module */
if (httpc_init(argc, argv)) {