From: František Dvořák Date: Tue, 29 May 2007 13:19:02 +0000 (+0000) Subject: Warnings fixes. X-Git-Tag: glite-yaim-lb_R_3_1_1-1~76 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=29ece013b6022c7800dd782b688c21957f93276b;p=jra1mw.git Warnings fixes. --- 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");