summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-response.c
diff options
context:
space:
mode:
authorGravatar m0gg2007-11-03 22:40:09 +0000
committerGravatar m0gg2007-11-03 22:40:09 +0000
commit8a6946b18003fae6400a137389f0cb13d0ac4bd6 (patch)
tree1fb0e6f58de5596f8dae00998da18472fb4952a1 /nanohttp/nanohttp-response.c
parentc1a7b2dabdc691139b744f0d4750f3b797b69073 (diff)
downloadcsoap-8a6946b18003fae6400a137389f0cb13d0ac4bd6.tar.gz
csoap-8a6946b18003fae6400a137389f0cb13d0ac4bd6.tar.bz2
Split nanoHTTP and cSOAP logging
Diffstat (limited to 'nanohttp/nanohttp-response.c')
-rwxr-xr-xnanohttp/nanohttp-response.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/nanohttp/nanohttp-response.c b/nanohttp/nanohttp-response.c
index ec35c40..54c05dc 100755
--- a/nanohttp/nanohttp-response.c
+++ b/nanohttp/nanohttp-response.c
@@ -1,5 +1,6 @@
+/** @file nanohttp-response.c HTTP response handling */
/******************************************************************
-* $Id: nanohttp-response.c,v 1.18 2006/12/16 15:55:24 m0gg Exp $
+* $Id: nanohttp-response.c,v 1.19 2007/11/03 22:40:11 m0gg Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -60,7 +61,7 @@ _hresponse_new(void)
if (!(res = (hresponse_t *) malloc(sizeof(hresponse_t))))
{
- log_error2("malloc failed (%s)", strerror(errno));
+ log_error("malloc failed (%s)", strerror(errno));
return NULL;
}
@@ -92,7 +93,7 @@ _hresponse_parse_header(const char *buffer)
s1 = s2;
if (str == NULL)
{
- log_error1("Parse error reading HTTP spec");
+ log_error("Parse error reading HTTP spec");
return NULL;
}
@@ -106,7 +107,7 @@ _hresponse_parse_header(const char *buffer)
s1 = s2;
if (str == NULL)
{
- log_error1("Parse error reading HTTP code");
+ log_error("Parse error reading HTTP code");
return NULL;
}
res->errcode = atoi(str);
@@ -116,7 +117,7 @@ _hresponse_parse_header(const char *buffer)
s1 = s2;
if (str == NULL)
{
- log_error1("Parse error reading HTTP description");
+ log_error("Parse error reading HTTP description");
return NULL;
}
/* res->desc = (char *) malloc(strlen(str) + 1);*/
@@ -168,7 +169,7 @@ read_header: /* for errorcode: 100 (continue) */
{
if ((status = hsocket_recv(sock, &(buffer[i]), 1, 1, &count)) != H_OK)
{
- log_error1("Socket read error");
+ log_error("Socket read error");
return status;
}
@@ -187,7 +188,7 @@ read_header: /* for errorcode: 100 (continue) */
res = _hresponse_parse_header(buffer);
if (res == NULL)
{
- log_error1("Header parse error");
+ log_error("Header parse error");
return herror_new("hresponse_new_from_socket",
GENERAL_HEADER_PARSE_ERROR,
"Can not parse response header");