summaryrefslogtreecommitdiffstats
path: root/examples/csoap/simpleclient.c
diff options
context:
space:
mode:
authorGravatar snowdrop2006-01-10 11:29:04 +0000
committerGravatar snowdrop2006-01-10 11:29:04 +0000
commit07c7c81772c4b60b7980880847f3b21455a0f3c9 (patch)
treed7f8ea3508586842124684aa8f0b860f3a3a1c47 /examples/csoap/simpleclient.c
parente96ea6884919f551111c32de0b63af4dff791f12 (diff)
downloadcsoap-07c7c81772c4b60b7980880847f3b21455a0f3c9.tar.gz
csoap-07c7c81772c4b60b7980880847f3b21455a0f3c9.tar.bz2
indent with 'indent -nut -bli0 -fca -npcs' command
Diffstat (limited to 'examples/csoap/simpleclient.c')
-rw-r--r--examples/csoap/simpleclient.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/examples/csoap/simpleclient.c b/examples/csoap/simpleclient.c
index 4e0e843..6ae206b 100644
--- a/examples/csoap/simpleclient.c
+++ b/examples/csoap/simpleclient.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: simpleclient.c,v 1.10 2006/01/10 11:21:55 snowdrop Exp $
+ * $Id: simpleclient.c,v 1.11 2006/01/10 11:29:04 snowdrop Exp $
*
* CSOAP Project: CSOAP examples project
* Copyright (C) 2003-2004 Ferhat Ayaz
@@ -30,50 +30,50 @@ static const char *method = "sayHello";
int
-main (int argc, char *argv[])
+main(int argc, char *argv[])
{
SoapCtx *ctx, *ctx2;
herror_t err;
/* log_set_level(HLOG_VERBOSE); */
- err = soap_client_init_args (argc, argv);
+ err = soap_client_init_args(argc, argv);
if (err != H_OK)
{
- log_error4 ("%s():%s [%d]", herror_func (err), herror_message (err),
- herror_code (err));
- herror_release (err);
+ log_error4("%s():%s [%d]", herror_func(err), herror_message(err),
+ herror_code(err));
+ herror_release(err);
return 1;
}
- err = soap_ctx_new_with_method (urn, method, &ctx);
+ err = soap_ctx_new_with_method(urn, method, &ctx);
if (err != H_OK)
{
- log_error4 ("%s():%s [%d]", herror_func (err), herror_message (err),
- herror_code (err));
- herror_release (err);
+ log_error4("%s():%s [%d]", herror_func(err), herror_message(err),
+ herror_code(err));
+ herror_release(err);
return 1;
}
- soap_env_add_item (ctx->env, "xsd:string", "name", "Jonny B. Good");
+ soap_env_add_item(ctx->env, "xsd:string", "name", "Jonny B. Good");
if (argc > 1)
- err = soap_client_invoke (ctx, &ctx2, argv[1], "");
+ err = soap_client_invoke(ctx, &ctx2, argv[1], "");
else
- err = soap_client_invoke (ctx, &ctx2, url, "");
+ err = soap_client_invoke(ctx, &ctx2, url, "");
if (err != H_OK)
{
- log_error4 ("[%d] %s(): %s ", herror_code (err), herror_func (err),
- herror_message (err));
- herror_release (err);
- soap_ctx_free (ctx);
+ log_error4("[%d] %s(): %s ", herror_code(err), herror_func(err),
+ herror_message(err));
+ herror_release(err);
+ soap_ctx_free(ctx);
return 1;
}
- soap_xml_doc_print (ctx2->env->root->doc);
- soap_ctx_free (ctx2);
- soap_ctx_free (ctx);
+ soap_xml_doc_print(ctx2->env->root->doc);
+ soap_ctx_free(ctx2);
+ soap_ctx_free(ctx);
- soap_client_destroy ();
+ soap_client_destroy();
return 0;
}