author | Michael Krelin <hacker@klever.net> | 2007-11-21 12:08:08 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-11-21 12:08:08 (UTC) |
commit | f0877a6af785a36ef769114816c71a838295d902 (patch) (unidiff) | |
tree | 1b5f0e9186747aee742f55ce559362f7df3cf30c | |
parent | 636135ac92ff022348ea8b5c8f4e5e7c1f928edd (diff) | |
download | libopkele-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>
-rw-r--r-- | lib/consumer.cc | 4 |
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 | |||
@@ -130,7 +130,7 @@ namespace opkele { | |||
130 | ; | 130 | ; |
131 | if(r) | 131 | if(r) |
132 | throw exception_curl(OPKELE_CP_ "failed to curl_easy_setopt()",r); | 132 | throw exception_curl(OPKELE_CP_ "failed to curl_easy_setopt()",r); |
133 | if(r=curl_easy_perform(curl)) | 133 | if( (r=curl_easy_perform(curl)) ) |
134 | throw exception_curl(OPKELE_CP_ "failed to curl_easy_perform()",r); | 134 | throw exception_curl(OPKELE_CP_ "failed to curl_easy_perform()",r); |
135 | params_t p; p.parse_keyvalues(response); | 135 | params_t p; p.parse_keyvalues(response); |
136 | if(p.has_param("assoc_type") && p.get_param("assoc_type")!="HMAC-SHA1") | 136 | if(p.has_param("assoc_type") && p.get_param("assoc_type")!="HMAC-SHA1") |
@@ -290,7 +290,7 @@ namespace opkele { | |||
290 | ; | 290 | ; |
291 | if(r) | 291 | if(r) |
292 | throw exception_curl(OPKELE_CP_ "failed to curl_easy_setopt()",r); | 292 | throw exception_curl(OPKELE_CP_ "failed to curl_easy_setopt()",r); |
293 | if(r=curl_easy_perform(curl)) | 293 | if( (r=curl_easy_perform(curl)) ) |
294 | throw exception_curl(OPKELE_CP_ "failed to curl_easy_perform()",r); | 294 | throw exception_curl(OPKELE_CP_ "failed to curl_easy_perform()",r); |
295 | params_t pp; pp.parse_keyvalues(response); | 295 | params_t pp; pp.parse_keyvalues(response); |
296 | if(pp.has_param("invalidate_handle")) | 296 | if(pp.has_param("invalidate_handle")) |