aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-08-26 13:34:53 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-08-26 13:34:53 -0700
commitc09e21f546c87dea94cf1fedac41d0dafbc71f7b (patch)
treeb47510b75c37be5fa5beb26d257fd91399471573
parentc3c6fafef8485dd5357d4771b53e25621f0d8080 (diff)
clang-format
-rw-r--r--src/core/ext/client_config/subchannel.c4
-rw-r--r--src/core/ext/transport/chttp2/transport/chttp2_transport.c27
2 files changed, 15 insertions, 16 deletions
diff --git a/src/core/ext/client_config/subchannel.c b/src/core/ext/client_config/subchannel.c
index 3854e757c2..69f9ddae13 100644
--- a/src/core/ext/client_config/subchannel.c
+++ b/src/core/ext/client_config/subchannel.c
@@ -349,8 +349,8 @@ grpc_subchannel *grpc_subchannel_create(grpc_exec_ctx *exec_ctx,
if (0 ==
strcmp(c->args->args[i].key, GRPC_ARG_MAX_RECONNECT_BACKOFF_MS)) {
const grpc_integer_options options = {-1, 0, INT_MAX};
- const int value = grpc_channel_arg_get_integer(&c->args->args[i],
- options);
+ const int value =
+ grpc_channel_arg_get_integer(&c->args->args[i], options);
if (value >= 0) {
gpr_backoff_init(
&c->backoff_state, GRPC_SUBCHANNEL_RECONNECT_BACKOFF_MULTIPLIER,
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.c b/src/core/ext/transport/chttp2/transport/chttp2_transport.c
index 21759dd9af..93d21c07d2 100644
--- a/src/core/ext/transport/chttp2/transport/chttp2_transport.c
+++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.c
@@ -341,8 +341,8 @@ static void init_transport(grpc_exec_ctx *exec_ctx, grpc_chttp2_transport *t,
GRPC_ARG_MAX_CONCURRENT_STREAMS);
} else {
const grpc_integer_options options = {-1, 0, INT_MAX};
- const int value = grpc_channel_arg_get_integer(&channel_args->args[i],
- options);
+ const int value =
+ grpc_channel_arg_get_integer(&channel_args->args[i], options);
if (value >= 0) {
push_setting(exec_ctx, t,
GRPC_CHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS,
@@ -352,8 +352,8 @@ static void init_transport(grpc_exec_ctx *exec_ctx, grpc_chttp2_transport *t,
} else if (0 == strcmp(channel_args->args[i].key,
GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER)) {
const grpc_integer_options options = {-1, 0, INT_MAX};
- const int value = grpc_channel_arg_get_integer(&channel_args->args[i],
- options);
+ const int value =
+ grpc_channel_arg_get_integer(&channel_args->args[i], options);
if (value >= 0) {
if ((t->global.next_stream_id & 1) != (value & 1)) {
gpr_log(GPR_ERROR, "%s: low bit must be %d on %s",
@@ -367,16 +367,16 @@ static void init_transport(grpc_exec_ctx *exec_ctx, grpc_chttp2_transport *t,
} else if (0 == strcmp(channel_args->args[i].key,
GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES)) {
const grpc_integer_options options = {-1, 5, INT_MAX};
- const int value = grpc_channel_arg_get_integer(&channel_args->args[i],
- options);
+ const int value =
+ grpc_channel_arg_get_integer(&channel_args->args[i], options);
if (value >= 0) {
t->global.stream_lookahead = (uint32_t)value;
}
} else if (0 == strcmp(channel_args->args[i].key,
GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_DECODER)) {
const grpc_integer_options options = {-1, 0, INT_MAX};
- const int value = grpc_channel_arg_get_integer(&channel_args->args[i],
- options);
+ const int value =
+ grpc_channel_arg_get_integer(&channel_args->args[i], options);
if (value >= 0) {
push_setting(exec_ctx, t, GRPC_CHTTP2_SETTINGS_HEADER_TABLE_SIZE,
(uint32_t)value);
@@ -384,18 +384,17 @@ static void init_transport(grpc_exec_ctx *exec_ctx, grpc_chttp2_transport *t,
} else if (0 == strcmp(channel_args->args[i].key,
GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_ENCODER)) {
const grpc_integer_options options = {-1, 0, INT_MAX};
- const int value = grpc_channel_arg_get_integer(&channel_args->args[i],
- options);
+ const int value =
+ grpc_channel_arg_get_integer(&channel_args->args[i], options);
if (value >= 0) {
grpc_chttp2_hpack_compressor_set_max_usable_size(
- &t->writing.hpack_compressor,
- (uint32_t)value);
+ &t->writing.hpack_compressor, (uint32_t)value);
}
} else if (0 == strcmp(channel_args->args[i].key,
GRPC_ARG_MAX_METADATA_SIZE)) {
const grpc_integer_options options = {-1, 0, INT_MAX};
- const int value = grpc_channel_arg_get_integer(&channel_args->args[i],
- options);
+ const int value =
+ grpc_channel_arg_get_integer(&channel_args->args[i], options);
if (value >= 0) {
push_setting(exec_ctx, t, GRPC_CHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE,
(uint32_t)value);