aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/client_channel
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-11-03 08:45:27 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-11-03 08:45:27 -0700
commit47f1084ce835d4288ddfa9f280e07d0a8d5719c5 (patch)
tree838d1c605b33d7f8eb22fadde5ecdc808b137379 /src/core/ext/client_channel
parent6ad80579de9f995ec210f40447bffe986cd4cb98 (diff)
clang-format
Diffstat (limited to 'src/core/ext/client_channel')
-rw-r--r--src/core/ext/client_channel/client_channel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/ext/client_channel/client_channel.c b/src/core/ext/client_channel/client_channel.c
index d53265bc9c..4ca24c4dbc 100644
--- a/src/core/ext/client_channel/client_channel.c
+++ b/src/core/ext/client_channel/client_channel.c
@@ -86,21 +86,21 @@ static const grpc_mdstr_hash_table_vtable method_parameters_vtable = {
static void *method_parameters_create_from_json(const grpc_json *json) {
wait_for_ready_value wait_for_ready = WAIT_FOR_READY_UNSET;
- gpr_timespec timeout = { 0, 0, GPR_TIMESPAN };
- for (grpc_json* field = json->child; field != NULL; field = field->next) {
+ gpr_timespec timeout = {0, 0, GPR_TIMESPAN};
+ for (grpc_json *field = json->child; field != NULL; field = field->next) {
if (field->key == NULL) continue;
if (strcmp(field->key, "wait_for_ready") == 0) {
if (wait_for_ready != WAIT_FOR_READY_UNSET) return NULL; // Duplicate.
if (field->type != GRPC_JSON_TRUE && field->type != GRPC_JSON_FALSE) {
return NULL;
}
- wait_for_ready = field->type == GRPC_JSON_TRUE
- ? WAIT_FOR_READY_TRUE : WAIT_FOR_READY_FALSE;
+ wait_for_ready = field->type == GRPC_JSON_TRUE ? WAIT_FOR_READY_TRUE
+ : WAIT_FOR_READY_FALSE;
} else if (strcmp(field->key, "timeout") == 0) {
if (timeout.tv_sec > 0 || timeout.tv_nsec > 0) return NULL; // Duplicate.
if (field->type != GRPC_JSON_OBJECT) return NULL;
if (field->child == NULL) return NULL;
- for (grpc_json* subfield = field->child; subfield != NULL;
+ for (grpc_json *subfield = field->child; subfield != NULL;
subfield = subfield->next) {
if (subfield->key == NULL) return NULL;
if (strcmp(subfield->key, "seconds") == 0) {
@@ -303,7 +303,7 @@ static void on_resolver_result_changed(grpc_exec_ctx *exec_ctx, void *arg,
grpc_channel_args_find(lb_policy_args.args, GRPC_ARG_SERVICE_CONFIG);
if (channel_arg != NULL) {
GPR_ASSERT(channel_arg->type == GRPC_ARG_POINTER);
- grpc_json_tree* json_tree = channel_arg->value.pointer.p;
+ grpc_json_tree *json_tree = channel_arg->value.pointer.p;
method_params_table = grpc_method_config_table_create_from_json(
json_tree->root, method_parameters_create_from_json,
&method_parameters_vtable);