diff options
author | Craig Tiller <ctiller@google.com> | 2016-01-25 08:16:02 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-01-25 08:16:02 -0800 |
commit | 5de79ee59f526f1eb0125d6544aaccdf5527afb4 (patch) | |
tree | ea9072ec1162ac6f17f199e546238b949aed2b8d /src/core/security | |
parent | 14890f4d87d3c91cf58404100a4994108ebb1928 (diff) |
clang-format
Diffstat (limited to 'src/core/security')
-rw-r--r-- | src/core/security/credentials.c | 6 | ||||
-rw-r--r-- | src/core/security/security_connector.c | 10 | ||||
-rw-r--r-- | src/core/security/security_context.c | 10 |
3 files changed, 8 insertions, 18 deletions
diff --git a/src/core/security/credentials.c b/src/core/security/credentials.c index 28f41b2041..86a8e130de 100644 --- a/src/core/security/credentials.c +++ b/src/core/security/credentials.c @@ -201,10 +201,8 @@ static int server_credentials_pointer_cmp(void *a, void *b) { } static const grpc_arg_pointer_vtable cred_ptr_vtable = { - server_credentials_pointer_arg_copy, - server_credentials_pointer_arg_destroy, - server_credentials_pointer_cmp -}; + server_credentials_pointer_arg_copy, server_credentials_pointer_arg_destroy, + server_credentials_pointer_cmp}; grpc_arg grpc_server_credentials_to_arg(grpc_server_credentials *p) { grpc_arg arg; diff --git a/src/core/security/security_connector.c b/src/core/security/security_connector.c index 40f486128b..cf50e9a91d 100644 --- a/src/core/security/security_connector.c +++ b/src/core/security/security_connector.c @@ -194,15 +194,11 @@ static void *connector_pointer_arg_copy(void *p) { return GRPC_SECURITY_CONNECTOR_REF(p, "connector_pointer_arg"); } -static int connector_pointer_cmp(void *a, void *b) { - return GPR_ICMP(a, b); -} +static int connector_pointer_cmp(void *a, void *b) { return GPR_ICMP(a, b); } static const grpc_arg_pointer_vtable connector_pointer_vtable = { - connector_pointer_arg_copy, - connector_pointer_arg_destroy, - connector_pointer_cmp -}; + connector_pointer_arg_copy, connector_pointer_arg_destroy, + connector_pointer_cmp}; grpc_arg grpc_security_connector_to_arg(grpc_security_connector *sc) { grpc_arg result; diff --git a/src/core/security/security_context.c b/src/core/security/security_context.c index 6e948f61bc..d28664cad3 100644 --- a/src/core/security/security_context.c +++ b/src/core/security/security_context.c @@ -309,15 +309,11 @@ static void *auth_context_pointer_arg_copy(void *p) { return GRPC_AUTH_CONTEXT_REF(p, "auth_context_pointer_arg"); } -static int auth_context_pointer_cmp(void *a, void *b) { - return GPR_ICMP(a, b); -} +static int auth_context_pointer_cmp(void *a, void *b) { return GPR_ICMP(a, b); } static const grpc_arg_pointer_vtable auth_context_pointer_vtable = { - auth_context_pointer_arg_copy, - auth_context_pointer_arg_destroy, - auth_context_pointer_cmp -}; + auth_context_pointer_arg_copy, auth_context_pointer_arg_destroy, + auth_context_pointer_cmp}; grpc_arg grpc_auth_context_to_arg(grpc_auth_context *p) { grpc_arg arg; |