From f0877a6af785a36ef769114816c71a838295d902 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 21 Nov 2007 12:08:08 +0000 Subject: Keep compiler happy Thanks Marcus Rueckert for pointing this out. Signed-off-by: Michael Krelin --- (limited to 'lib/consumer.cc') diff --git a/lib/consumer.cc b/lib/consumer.cc index 76b6ea7..f9212ea 100644 --- a/lib/consumer.cc +++ b/lib/consumer.cc @@ -130,7 +130,7 @@ namespace opkele { ; 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") @@ -290,7 +290,7 @@ namespace opkele { ; 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")) -- cgit v0.9.0.2