aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/channel
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-09-22 09:30:46 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-09-22 09:30:46 -0700
commitaf73d78b7838deb94673815ba3c1b0ebcadc5927 (patch)
treeca9006af480237647cada1e8b833f2d9106960b8 /src/core/channel
parentd9ccbbf6b98721f3e0256436e8a31fb378324d34 (diff)
clang-format all core files
Diffstat (limited to 'src/core/channel')
-rw-r--r--src/core/channel/channel_args.c8
-rw-r--r--src/core/channel/channel_args.h4
-rw-r--r--src/core/channel/client_channel.c4
3 files changed, 6 insertions, 10 deletions
diff --git a/src/core/channel/channel_args.c b/src/core/channel/channel_args.c
index 591135cd6f..487db1119a 100644
--- a/src/core/channel/channel_args.c
+++ b/src/core/channel/channel_args.c
@@ -151,8 +151,8 @@ grpc_channel_args *grpc_channel_args_set_compression_algorithm(
/** Returns 1 if the argument for compression algorithm's enabled states bitset
* was found in \a a, returning the arg's value in \a states. Otherwise, returns
* 0. */
-static int find_compression_algorithm_states_bitset(
- const grpc_channel_args *a, int **states_arg) {
+static int find_compression_algorithm_states_bitset(const grpc_channel_args *a,
+ int **states_arg) {
if (a != NULL) {
size_t i;
for (i = 0; i < a->num_args; ++i) {
@@ -167,9 +167,7 @@ static int find_compression_algorithm_states_bitset(
}
grpc_channel_args *grpc_channel_args_compression_algorithm_set_state(
- grpc_channel_args **a,
- grpc_compression_algorithm algorithm,
- int state) {
+ grpc_channel_args **a, grpc_compression_algorithm algorithm, int state) {
int *states_arg;
grpc_channel_args *result = *a;
const int states_arg_found =
diff --git a/src/core/channel/channel_args.h b/src/core/channel/channel_args.h
index 06a6012dee..f9e7b05860 100644
--- a/src/core/channel/channel_args.h
+++ b/src/core/channel/channel_args.h
@@ -75,9 +75,7 @@ grpc_channel_args *grpc_channel_args_set_compression_algorithm(
* modified to point to the returned instance (which may be different from the
* input value of \a a). */
grpc_channel_args *grpc_channel_args_compression_algorithm_set_state(
- grpc_channel_args **a,
- grpc_compression_algorithm algorithm,
- int enabled);
+ grpc_channel_args **a, grpc_compression_algorithm algorithm, int enabled);
/** Returns the bitset representing the support state (true for enabled, false
* for disabled) for compression algorithms.
diff --git a/src/core/channel/client_channel.c b/src/core/channel/client_channel.c
index 54adeaee9d..903f9eab50 100644
--- a/src/core/channel/client_channel.c
+++ b/src/core/channel/client_channel.c
@@ -679,8 +679,8 @@ static void init_channel_elem(grpc_channel_element *elem, grpc_channel *master,
grpc_pollset_set_init(&chand->pollset_set);
grpc_closure_init(&chand->on_config_changed, cc_on_config_changed, chand);
- grpc_connectivity_state_init(&chand->state_tracker,
- GRPC_CHANNEL_IDLE, "client_channel");
+ grpc_connectivity_state_init(&chand->state_tracker, GRPC_CHANNEL_IDLE,
+ "client_channel");
}
/* Destructor for channel_data */