diff options
author | murgatroid99 <mlumish@google.com> | 2017-02-17 14:50:26 -0800 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2017-02-17 14:50:26 -0800 |
commit | 0c73a1ad8e60ffbb8f889651764e219dec184543 (patch) | |
tree | e7193b5e770fa065841a906a29a52bdfda52018f | |
parent | 1191b7202d86f01857f74d0709792fb74eac5a37 (diff) |
Clang format
-rw-r--r-- | test/core/iomgr/tcp_client_uv_test.c | 6 | ||||
-rw-r--r-- | test/core/iomgr/tcp_server_uv_test.c | 4 | ||||
-rw-r--r-- | test/core/util/test_config.c | 17 |
3 files changed, 10 insertions, 17 deletions
diff --git a/test/core/iomgr/tcp_client_uv_test.c b/test/core/iomgr/tcp_client_uv_test.c index fc2360b436..f8938d0abb 100644 --- a/test/core/iomgr/tcp_client_uv_test.c +++ b/test/core/iomgr/tcp_client_uv_test.c @@ -85,9 +85,7 @@ static void must_fail(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) { finish_connection(); } -static void close_cb(uv_handle_t *handle) { - gpr_free(handle); -} +static void close_cb(uv_handle_t *handle) { gpr_free(handle); } static void connection_cb(uv_stream_t *server, int status) { uv_tcp_t *client_handle = gpr_malloc(sizeof(uv_tcp_t)); @@ -142,7 +140,7 @@ void test_succeeds(void) { } // This will get cleaned up when the pollset runs again or gets shutdown - uv_close((uv_handle_t*)svr_handle, close_cb); + uv_close((uv_handle_t *)svr_handle, close_cb); gpr_mu_unlock(g_mu); diff --git a/test/core/iomgr/tcp_server_uv_test.c b/test/core/iomgr/tcp_server_uv_test.c index 07d09af127..7b458c90f3 100644 --- a/test/core/iomgr/tcp_server_uv_test.c +++ b/test/core/iomgr/tcp_server_uv_test.c @@ -199,9 +199,7 @@ static void connect_cb(uv_connect_t *req, int status) { gpr_free(req); } -static void close_cb(uv_handle_t *handle) { - gpr_free(handle); -} +static void close_cb(uv_handle_t *handle) { gpr_free(handle); } static void tcp_connect(grpc_exec_ctx *exec_ctx, const struct sockaddr *remote, socklen_t remote_len, on_connect_result *result) { diff --git a/test/core/util/test_config.c b/test/core/util/test_config.c index 986bbc9569..be159403b9 100644 --- a/test/core/util/test_config.c +++ b/test/core/util/test_config.c @@ -217,16 +217,13 @@ static void install_crash_handler() { #define SIGNAL_NAMES_LENGTH 32 -static const char * const signal_names[] = { - NULL, - "SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGTRAP", - "SIGABRT", "SIGBUS", "SIGFPE", "SIGKILL", "SIGUSR1", - "SIGSEGV", "SIGUSR2", "SIGPIPE", "SIGALRM", "SIGTERM", - "SIGSTKFLT", "SIGCHLD", "SIGCONT", "SIGSTOP", "SIGTSTP", - "SIGTTIN", "SIGTTOU", "SIGURG", "SIGXCPU", "SIGXFSZ", - "SIGVTALRM", "SIGPROF", "SIGWINCH", "SIGIO", "SIGPWR", - "SIGSYS" -}; +static const char *const signal_names[] = { + NULL, "SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGTRAP", + "SIGABRT", "SIGBUS", "SIGFPE", "SIGKILL", "SIGUSR1", "SIGSEGV", + "SIGUSR2", "SIGPIPE", "SIGALRM", "SIGTERM", "SIGSTKFLT", "SIGCHLD", + "SIGCONT", "SIGSTOP", "SIGTSTP", "SIGTTIN", "SIGTTOU", "SIGURG", + "SIGXCPU", "SIGXFSZ", "SIGVTALRM", "SIGPROF", "SIGWINCH", "SIGIO", + "SIGPWR", "SIGSYS"}; static char g_alt_stack[GPR_MAX(MINSIGSTKSZ, 65536)]; |