summaryrefslogtreecommitdiffabout
path: root/lib
Side-by-side diff
Diffstat (limited to 'lib') (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
@@ -131,5 +131,5 @@ 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);
@@ -291,5 +291,5 @@ 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);