clang format

pull/10440/head
Dan Zhang 8 years ago
parent 5c708f4aee
commit 2d38b05671
  1. 2
      src/core/lib/iomgr/udp_server.h
  2. 2
      test/core/iomgr/udp_server_test.c

@ -56,7 +56,7 @@ typedef void (*grpc_udp_server_write_cb)(grpc_exec_ctx *exec_ctx, grpc_fd *emfd,
/* Called when the grpc_fd is about to be orphaned (and the FD closed). */ /* Called when the grpc_fd is about to be orphaned (and the FD closed). */
typedef void (*grpc_udp_server_orphan_cb)(grpc_exec_ctx *exec_ctx, typedef void (*grpc_udp_server_orphan_cb)(grpc_exec_ctx *exec_ctx,
grpc_fd *emfd, grpc_fd *emfd,
grpc_closure* shutdown_fd_callback, grpc_closure *shutdown_fd_callback,
void *user_data); void *user_data);
/* Create a server, initially not bound to any ports */ /* Create a server, initially not bound to any ports */

@ -91,7 +91,7 @@ static void on_write(grpc_exec_ctx *exec_ctx, grpc_fd *emfd, void *user_data) {
} }
static void on_fd_orphaned(grpc_exec_ctx *exec_ctx, grpc_fd *emfd, static void on_fd_orphaned(grpc_exec_ctx *exec_ctx, grpc_fd *emfd,
grpc_closure* closure, void *user_data) { grpc_closure *closure, void *user_data) {
gpr_log(GPR_INFO, "gRPC FD about to be orphaned: %d", gpr_log(GPR_INFO, "gRPC FD about to be orphaned: %d",
grpc_fd_wrapped_fd(emfd)); grpc_fd_wrapped_fd(emfd));
g_number_of_orphan_calls++; g_number_of_orphan_calls++;

Loading…
Cancel
Save