summaryrefslogtreecommitdiffabout
path: root/lib/consumer.cc
authorMichael Krelin <hacker@klever.net>2007-11-21 12:08:08 (UTC)
committer Michael Krelin <hacker@klever.net>2007-11-21 12:08:08 (UTC)
commitf0877a6af785a36ef769114816c71a838295d902 (patch) (side-by-side diff)
tree1b5f0e9186747aee742f55ce559362f7df3cf30c /lib/consumer.cc
parent636135ac92ff022348ea8b5c8f4e5e7c1f928edd (diff)
downloadlibopkele-f0877a6af785a36ef769114816c71a838295d902.zip
libopkele-f0877a6af785a36ef769114816c71a838295d902.tar.gz
libopkele-f0877a6af785a36ef769114816c71a838295d902.tar.bz2
Keep compiler happy
Thanks Marcus Rueckert for pointing this out. Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'lib/consumer.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/consumer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/consumer.cc b/lib/consumer.cc
index 76b6ea7..f9212ea 100644
--- a/lib/consumer.cc
+++ b/lib/consumer.cc
@@ -127,13 +127,13 @@ namespace opkele {
|| (r=curl_easy_setopt(curl,CURLOPT_POSTFIELDSIZE,request.length()))
|| (r=curl_easy_setopt(curl,CURLOPT_WRITEFUNCTION,_curl_tostring))
|| (r=curl_easy_setopt(curl,CURLOPT_WRITEDATA,&response))
;
if(r)
throw exception_curl(OPKELE_CP_ "failed to curl_easy_setopt()",r);
- if(r=curl_easy_perform(curl))
+ if( (r=curl_easy_perform(curl)) )
throw exception_curl(OPKELE_CP_ "failed to curl_easy_perform()",r);
params_t p; p.parse_keyvalues(response);
if(p.has_param("assoc_type") && p.get_param("assoc_type")!="HMAC-SHA1")
throw bad_input(OPKELE_CP_ "unsupported assoc_type");
string st;
if(p.has_param("session_type")) st = p.get_param("session_type");
@@ -287,13 +287,13 @@ namespace opkele {
|| (r=curl_easy_setopt(curl,CURLOPT_POSTFIELDSIZE,request.length()))
|| (r=curl_easy_setopt(curl,CURLOPT_WRITEFUNCTION,_curl_tostring))
|| (r=curl_easy_setopt(curl,CURLOPT_WRITEDATA,&response))
;
if(r)
throw exception_curl(OPKELE_CP_ "failed to curl_easy_setopt()",r);
- if(r=curl_easy_perform(curl))
+ if( (r=curl_easy_perform(curl)) )
throw exception_curl(OPKELE_CP_ "failed to curl_easy_perform()",r);
params_t pp; pp.parse_keyvalues(response);
if(pp.has_param("invalidate_handle"))
invalidate_assoc(server,pp.get_param("invalidate_handle"));
if(pp.has_param("is_valid")) {
if(pp.get_param("is_valid")=="true")