aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Makarand Dharmapurikar <makarandd@google.com>2016-05-03 21:23:58 -0700
committerGravatar Makarand Dharmapurikar <makarandd@google.com>2016-05-03 21:23:58 -0700
commita93c4353e79b2913769cc78cecd1da15a6b0e089 (patch)
tree31e35da5a5b03f6239781d8f95576912e1f873da
parent274bcc8f0b50bfef7fe1dd5cc33ebaa6b13edba0 (diff)
clang-format fixes
-rw-r--r--src/core/ext/transport/cronet/transport/cronet_api_dummy.c22
-rw-r--r--src/core/ext/transport/cronet/transport/cronet_transport.c4
2 files changed, 11 insertions, 15 deletions
diff --git a/src/core/ext/transport/cronet/transport/cronet_api_dummy.c b/src/core/ext/transport/cronet/transport/cronet_api_dummy.c
index 200f9f7daa..687026c9fd 100644
--- a/src/core/ext/transport/cronet/transport/cronet_api_dummy.c
+++ b/src/core/ext/transport/cronet/transport/cronet_api_dummy.c
@@ -41,12 +41,11 @@ library, so we can build it in all environments */
#include "third_party/objective_c/Cronet/cronet_c_for_grpc.h"
#ifdef GRPC_COMPILE_WITH_CRONET
- /* link with the real CRONET library in the build system */
+/* link with the real CRONET library in the build system */
#else
- /* Dummy implementation of cronet API just to test for build-ability */
+/* Dummy implementation of cronet API just to test for build-ability */
cronet_bidirectional_stream* cronet_bidirectional_stream_create(
- cronet_engine* engine,
- void* annotation,
+ cronet_engine* engine, void* annotation,
cronet_bidirectional_stream_callback* callback) {
GPR_ASSERT(0);
return NULL;
@@ -58,26 +57,21 @@ int cronet_bidirectional_stream_destroy(cronet_bidirectional_stream* stream) {
}
int cronet_bidirectional_stream_start(
- cronet_bidirectional_stream* stream,
- const char* url,
- int priority,
- const char* method,
- const cronet_bidirectional_stream_header_array* headers,
+ cronet_bidirectional_stream* stream, const char* url, int priority,
+ const char* method, const cronet_bidirectional_stream_header_array* headers,
bool end_of_stream) {
GPR_ASSERT(0);
return 0;
}
int cronet_bidirectional_stream_read(cronet_bidirectional_stream* stream,
- char* buffer,
- int capacity) {
+ char* buffer, int capacity) {
GPR_ASSERT(0);
return 0;
}
int cronet_bidirectional_stream_write(cronet_bidirectional_stream* stream,
- const char* buffer,
- int count,
+ const char* buffer, int count,
bool end_of_stream) {
GPR_ASSERT(0);
return 0;
@@ -88,4 +82,4 @@ int cronet_bidirectional_stream_cancel(cronet_bidirectional_stream* stream) {
return 0;
}
-#endif /* GRPC_COMPILE_WITH_CRONET */
+#endif /* GRPC_COMPILE_WITH_CRONET */
diff --git a/src/core/ext/transport/cronet/transport/cronet_transport.c b/src/core/ext/transport/cronet/transport/cronet_transport.c
index 64bd5f5778..5da4b873fb 100644
--- a/src/core/ext/transport/cronet/transport/cronet_transport.c
+++ b/src/core/ext/transport/cronet/transport/cronet_transport.c
@@ -621,7 +621,9 @@ static void destroy_stream(grpc_exec_ctx *exec_ctx, grpc_transport *gt,
gpr_free(s->write_buffer);
gpr_free(s->url);
gpr_mu_destroy(&s->recv_mu);
- if (and_free_memory) { gpr_free(and_free_memory); }
+ if (and_free_memory) {
+ gpr_free(and_free_memory);
+ }
}
static void destroy_transport(grpc_exec_ctx *exec_ctx, grpc_transport *gt) {