aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/iomgr_posix_cfstream.cc
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-08-07 10:43:51 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-08-07 10:43:51 -0700
commitdf5205f74d3bfd3d77cb7e076e43e74fcb15c3cf (patch)
treea7d7669f02fcb5810b17218269bfb602f8f9d09c /src/core/lib/iomgr/iomgr_posix_cfstream.cc
parente8f0e54dce41e4575cc48c390f6d7696be27f22a (diff)
clang-format
Diffstat (limited to 'src/core/lib/iomgr/iomgr_posix_cfstream.cc')
-rw-r--r--src/core/lib/iomgr/iomgr_posix_cfstream.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/lib/iomgr/iomgr_posix_cfstream.cc b/src/core/lib/iomgr/iomgr_posix_cfstream.cc
index 646dd9ee6d..235a9e0712 100644
--- a/src/core/lib/iomgr/iomgr_posix_cfstream.cc
+++ b/src/core/lib/iomgr/iomgr_posix_cfstream.cc
@@ -22,7 +22,6 @@
#ifdef GRPC_CFSTREAM_IOMGR
-
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/iomgr/ev_posix.h"
#include "src/core/lib/iomgr/iomgr_internal.h"
@@ -33,7 +32,7 @@
#include "src/core/lib/iomgr/tcp_server.h"
#include "src/core/lib/iomgr/timer.h"
-static const char *grpc_cfstream_env_var = "grpc_cfstream";
+static const char* grpc_cfstream_env_var = "grpc_cfstream";
extern grpc_tcp_server_vtable grpc_posix_tcp_server_vtable;
extern grpc_tcp_client_vtable grpc_posix_tcp_client_vtable;
@@ -59,8 +58,8 @@ static grpc_iomgr_platform_vtable vtable = {
iomgr_platform_init, iomgr_platform_flush, iomgr_platform_shutdown};
void grpc_set_default_iomgr_platform() {
- char *enable_cfstream = getenv(grpc_cfstream_env_var);
- grpc_tcp_client_vtable *client_vtable = &grpc_posix_tcp_client_vtable;
+ char* enable_cfstream = getenv(grpc_cfstream_env_var);
+ grpc_tcp_client_vtable* client_vtable = &grpc_posix_tcp_client_vtable;
if (enable_cfstream != nullptr && enable_cfstream[0] == '1') {
client_vtable = &grpc_cfstream_client_vtable;
}