diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-02-13 23:18:15 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-02-13 23:18:15 -0800 |
commit | d209ed0e5504bcd83732b9eca90ba1878318d297 (patch) | |
tree | efa7570d55d36d033b6f4311f5ff213acedd90f5 /src | |
parent | ae7fe92389d51e7eb22d6a167a2f16ad61acd50a (diff) |
clang-format
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/resolve_address.c | 3 | ||||
-rw-r--r-- | src/core/iomgr/tcp_client_posix.c | 2 | ||||
-rw-r--r-- | src/core/iomgr/tcp_server_posix.c | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/core/iomgr/resolve_address.c b/src/core/iomgr/resolve_address.c index 58daade03c..e17bcdba0f 100644 --- a/src/core/iomgr/resolve_address.c +++ b/src/core/iomgr/resolve_address.c @@ -126,7 +126,8 @@ grpc_resolved_addresses *grpc_blocking_resolve_address( const gpr_timespec start_time = gpr_now(); struct sockaddr_un *un; - if (name[0] == 'u' && name[1] == 'n' && name[2] == 'i' && name[3] == 'x' && name[4] == ':' && name[5] != 0) { + if (name[0] == 'u' && name[1] == 'n' && name[2] == 'i' && name[3] == 'x' && + name[4] == ':' && name[5] != 0) { addrs = gpr_malloc(sizeof(grpc_resolved_addresses)); addrs->naddrs = 1; addrs->addrs = gpr_malloc(sizeof(grpc_resolved_address)); diff --git a/src/core/iomgr/tcp_client_posix.c b/src/core/iomgr/tcp_client_posix.c index 397dff5a5d..6dc7997833 100644 --- a/src/core/iomgr/tcp_client_posix.c +++ b/src/core/iomgr/tcp_client_posix.c @@ -62,7 +62,7 @@ typedef struct { int refs; } async_connect; -static int prepare_socket(const struct sockaddr* addr, int fd) { +static int prepare_socket(const struct sockaddr *addr, int fd) { if (fd < 0) { goto error; } diff --git a/src/core/iomgr/tcp_server_posix.c b/src/core/iomgr/tcp_server_posix.c index b69dbd923b..355a040ff2 100644 --- a/src/core/iomgr/tcp_server_posix.c +++ b/src/core/iomgr/tcp_server_posix.c @@ -178,7 +178,8 @@ static int prepare_socket(int fd, const struct sockaddr *addr, int addr_len) { } if (!grpc_set_socket_nonblocking(fd, 1) || !grpc_set_socket_cloexec(fd, 1) || - (addr->sa_family != AF_UNIX && (!grpc_set_socket_low_latency(fd, 1) || !grpc_set_socket_reuse_addr(fd, 1)))) { + (addr->sa_family != AF_UNIX && (!grpc_set_socket_low_latency(fd, 1) || + !grpc_set_socket_reuse_addr(fd, 1)))) { gpr_log(GPR_ERROR, "Unable to configure socket %d: %s", fd, strerror(errno)); goto error; |