diff options
author | Mark D. Roth <roth@google.com> | 2017-01-18 08:38:08 -0800 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-01-18 08:38:08 -0800 |
commit | edff74cc8f735738bb630d876536cbff338ea003 (patch) | |
tree | 4f880127e561ebbde6e8109835648c7278f9cfe1 | |
parent | 84d66822124778fa29f22e2c9c68437fa4c69457 (diff) |
clang-format
-rw-r--r-- | src/core/ext/client_channel/proxy_mapper_registry.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/core/ext/client_channel/proxy_mapper_registry.c b/src/core/ext/client_channel/proxy_mapper_registry.c index ad453f272f..66e5ce2c79 100644 --- a/src/core/ext/client_channel/proxy_mapper_registry.c +++ b/src/core/ext/client_channel/proxy_mapper_registry.c @@ -46,8 +46,9 @@ typedef struct { size_t num_mappers; } grpc_proxy_mapper_list; -static void grpc_proxy_mapper_list_register( - grpc_proxy_mapper_list* list, bool at_start, grpc_proxy_mapper* mapper) { +static void grpc_proxy_mapper_list_register(grpc_proxy_mapper_list* list, + bool at_start, + grpc_proxy_mapper* mapper) { list->list = gpr_realloc( list->list, (list->num_mappers + 1) * sizeof(grpc_proxy_mapper*)); if (at_start) { @@ -60,10 +61,12 @@ static void grpc_proxy_mapper_list_register( ++list->num_mappers; } -static bool grpc_proxy_mapper_list_map( - grpc_exec_ctx* exec_ctx, grpc_proxy_mapper_list* list, - const grpc_resolved_address* address, const grpc_channel_args* args, - grpc_resolved_address** new_address, grpc_channel_args** new_args) { +static bool grpc_proxy_mapper_list_map(grpc_exec_ctx* exec_ctx, + grpc_proxy_mapper_list* list, + const grpc_resolved_address* address, + const grpc_channel_args* args, + grpc_resolved_address** new_address, + grpc_channel_args** new_args) { for (size_t i = 0; i < list->num_mappers; ++i) { if (grpc_proxy_mapper_map(exec_ctx, list->list[i], address, args, new_address, new_args)) { @@ -73,8 +76,8 @@ static bool grpc_proxy_mapper_list_map( return false; } -static void grpc_proxy_mapper_list_destroy( - grpc_exec_ctx* exec_ctx, grpc_proxy_mapper_list* list) { +static void grpc_proxy_mapper_list_destroy(grpc_exec_ctx* exec_ctx, + grpc_proxy_mapper_list* list) { for (size_t i = 0; i < list->num_mappers; ++i) { grpc_proxy_mapper_destroy(exec_ctx, list->list[i]); } |