From 29ece013b6022c7800dd782b688c21957f93276b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 29 May 2007 13:19:02 +0000 Subject: [PATCH] Warnings fixes. --- org.glite.security.gsoap-plugin/examples/wscalc_clt_ex.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/org.glite.security.gsoap-plugin/examples/wscalc_clt_ex.c b/org.glite.security.gsoap-plugin/examples/wscalc_clt_ex.c index 83a4cfb..41f36d4 100644 --- a/org.glite.security.gsoap-plugin/examples/wscalc_clt_ex.c +++ b/org.glite.security.gsoap-plugin/examples/wscalc_clt_ex.c @@ -11,6 +11,8 @@ main(int argc, char **argv) struct soap soap; double a, b, result; int ret; + struct wscalc__addResponse addresult; + struct wscalc__subResponse subresult; if (argc < 4) { @@ -26,10 +28,12 @@ main(int argc, char **argv) b = strtod(argv[3], NULL); switch ( *argv[1] ) { case 'a': - ret = soap_call_wscalc__add(&soap, server, "", a, b, &result); + ret = soap_call_wscalc__add(&soap, server, "", a, b, &addresult); + result = addresult.result; break; case 's': - ret = soap_call_wscalc__sub(&soap, server, "", a, b, &result); + ret = soap_call_wscalc__sub(&soap, server, "", a, b, &subresult); + result = subresult.result; break; default: fprintf(stderr, "Unknown command\n"); -- 1.8.2.3