THRIFT-1243 TAsyncChannel callbacks (use void instead of bool)
Patch: Alexandre Parenteau

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1151940 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/async/TEvhttpClientChannel.cpp b/lib/cpp/src/async/TEvhttpClientChannel.cpp
index b5265ce..e5fc1b0 100755
--- a/lib/cpp/src/async/TEvhttpClientChannel.cpp
+++ b/lib/cpp/src/async/TEvhttpClientChannel.cpp
@@ -50,7 +50,7 @@
 }
 
 
-bool TEvhttpClientChannel::sendAndRecvMessage(
+void TEvhttpClientChannel::sendAndRecvMessage(
     const VoidCallback& cob,
     apache::thrift::transport::TMemoryBuffer* sendBuf,
     apache::thrift::transport::TMemoryBuffer* recvBuf) {
@@ -86,12 +86,10 @@
   if (rv != 0) {
     abort(); // XXX
   }
-
-  return true;
 }
 
 
-bool TEvhttpClientChannel::sendMessage(
+void TEvhttpClientChannel::sendMessage(
     const VoidCallback& cob, apache::thrift::transport::TMemoryBuffer* message) {
   (void) cob;
   (void) message;
@@ -99,7 +97,7 @@
 }
 
 
-bool TEvhttpClientChannel::recvMessage(
+void TEvhttpClientChannel::recvMessage(
     const VoidCallback& cob, apache::thrift::transport::TMemoryBuffer* message) {
   (void) cob;
   (void) message;
@@ -109,14 +107,17 @@
 
 void TEvhttpClientChannel::finish(struct evhttp_request* req) {
   if (req == NULL) {
-    return cob_();
+    cob_();
+	return;
   } else if (req->response_code != 200) {
-    return cob_();
+    cob_();
+	return;
   }
   recvBuf_->resetBuffer(
       EVBUFFER_DATA(req->input_buffer),
       EVBUFFER_LENGTH(req->input_buffer));
-  return cob_();
+  cob_();
+  return;
 }