From 0c73a1ad8e60ffbb8f889651764e219dec184543 Mon Sep 17 00:00:00 2001 From: murgatroid99 Date: Fri, 17 Feb 2017 14:50:26 -0800 Subject: Clang format --- test/core/iomgr/tcp_client_uv_test.c | 6 ++---- test/core/iomgr/tcp_server_uv_test.c | 4 +--- 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)]; -- cgit v1.2.3