From 40934ade5e7afb22210390d43ae013dccf5ad297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 17 Aug 2015 14:06:00 +0000 Subject: fixed warnings svn path=/trunk/externals/iem/iemxmlrpc/; revision=17516 --- xmlrpc++/src/XmlRpcClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmlrpc++/src/XmlRpcClient.cpp') diff --git a/xmlrpc++/src/XmlRpcClient.cpp b/xmlrpc++/src/XmlRpcClient.cpp index 0684183..2491adb 100644 --- a/xmlrpc++/src/XmlRpcClient.cpp +++ b/xmlrpc++/src/XmlRpcClient.cpp @@ -251,7 +251,7 @@ XmlRpcClient::generateHeader(std::string const& body) header += buff; header += "Content-Type: text/xml\r\nContent-length: "; - sprintf(buff,"%d\r\n\r\n", body.size()); + sprintf(buff,"%d\r\n\r\n", (int)body.size()); return header + buff; } @@ -396,7 +396,7 @@ XmlRpcClient::parseResponse(XmlRpcValue& result) // Expect either ... or ... if ((XmlRpcUtil::nextTagIs(PARAMS_TAG,_response,&offset) && XmlRpcUtil::nextTagIs(PARAM_TAG,_response,&offset)) || - XmlRpcUtil::nextTagIs(FAULT_TAG,_response,&offset) && (_isFault = true)) + (XmlRpcUtil::nextTagIs(FAULT_TAG,_response,&offset) && (_isFault = true))) { if ( ! result.fromXml(_response, &offset)) { XmlRpcUtil::error("Error in XmlRpcClient::parseResponse: Invalid response value. Response:\n%s", _response.c_str()); -- cgit v1.2.1