diff options
author | snowdrop | 2006-01-10 11:29:04 +0000 |
---|---|---|
committer | snowdrop | 2006-01-10 11:29:04 +0000 |
commit | 07c7c81772c4b60b7980880847f3b21455a0f3c9 (patch) | |
tree | d7f8ea3508586842124684aa8f0b860f3a3a1c47 /libcsoap/soap-fault.c | |
parent | e96ea6884919f551111c32de0b63af4dff791f12 (diff) | |
download | csoap-07c7c81772c4b60b7980880847f3b21455a0f3c9.tar.gz csoap-07c7c81772c4b60b7980880847f3b21455a0f3c9.tar.bz2 |
indent with 'indent -nut -bli0 -fca -npcs' command
Diffstat (limited to 'libcsoap/soap-fault.c')
-rw-r--r-- | libcsoap/soap-fault.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/libcsoap/soap-fault.c b/libcsoap/soap-fault.c index 3c8f5c1..1e6cae8 100644 --- a/libcsoap/soap-fault.c +++ b/libcsoap/soap-fault.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: soap-fault.c,v 1.7 2006/01/10 11:21:55 snowdrop Exp $ +* $Id: soap-fault.c,v 1.8 2006/01/10 11:29:04 snowdrop Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -63,9 +63,9 @@ static char *fault_client = "Client"; static char *fault_server = "Server"; xmlDocPtr -soap_fault_build (fault_code_t fcode, - const char *faultstring, - const char *faultactor, const char *detail) +soap_fault_build(fault_code_t fcode, + const char *faultstring, + const char *faultactor, const char *detail) { /* variables */ @@ -74,7 +74,7 @@ soap_fault_build (fault_code_t fcode, char *buffer; xmlDocPtr fault; /* result */ - log_verbose1 ("Build fault"); + log_verbose1("Build fault"); switch (fcode) { @@ -96,33 +96,33 @@ soap_fault_build (fault_code_t fcode, /* calculate buffer length */ if (faultstring) - bufferlen += strlen (faultstring); + bufferlen += strlen(faultstring); if (faultactor) - bufferlen += strlen (faultactor); + bufferlen += strlen(faultactor); if (detail) - bufferlen += strlen (detail); + bufferlen += strlen(detail); - log_verbose2 ("Creating buffer with %d bytes", bufferlen); - buffer = (char *) malloc (bufferlen); + log_verbose2("Creating buffer with %d bytes", bufferlen); + buffer = (char *) malloc(bufferlen); - sprintf (buffer, _SOAP_FAULT_TEMPLATE_, - soap_env_ns, soap_env_enc, soap_xsi_ns, - soap_xsd_ns, faultcode, - faultstring ? faultstring : "error", - faultactor ? faultactor : "", detail ? detail : ""); + sprintf(buffer, _SOAP_FAULT_TEMPLATE_, + soap_env_ns, soap_env_enc, soap_xsi_ns, + soap_xsd_ns, faultcode, + faultstring ? faultstring : "error", + faultactor ? faultactor : "", detail ? detail : ""); - fault = xmlParseDoc (BAD_CAST buffer); - free (buffer); + fault = xmlParseDoc(BAD_CAST buffer); + free(buffer); if (fault == NULL) { - log_error1 ("Can not create xml document!"); + log_error1("Can not create xml document!"); - return soap_fault_build (fcode, "Can not create fault object in xml", - "soap_fault_build()", NULL); + return soap_fault_build(fcode, "Can not create fault object in xml", + "soap_fault_build()", NULL); } - log_verbose2 ("Returning fault (%p)", fault); + log_verbose2("Returning fault (%p)", fault); return fault; } |