diff options
author | Vijay Pai <vpai@google.com> | 2018-01-02 23:30:47 +0000 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2018-01-02 15:32:52 -0800 |
commit | 849bd73c4fe28ec880d111522fce05cda7126c93 (patch) | |
tree | 4aba4ec4fc677181250f48af999738a3d7fc7625 /src/core/ext/filters/client_channel/channel_connectivity.cc | |
parent | 63392f682e21543099926251b642cdcd0be2a17f (diff) |
Wrap duplicated-name definitions in anonymous namespace
Diffstat (limited to 'src/core/ext/filters/client_channel/channel_connectivity.cc')
-rw-r--r-- | src/core/ext/filters/client_channel/channel_connectivity.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ext/filters/client_channel/channel_connectivity.cc b/src/core/ext/filters/client_channel/channel_connectivity.cc index 20693ba419..a827aa30ec 100644 --- a/src/core/ext/filters/client_channel/channel_connectivity.cc +++ b/src/core/ext/filters/client_channel/channel_connectivity.cc @@ -58,7 +58,8 @@ typedef enum { CALLING_BACK_AND_FINISHED, } callback_phase; -typedef struct { +namespace { +struct state_watcher { gpr_mu mu; callback_phase phase; grpc_closure on_complete; @@ -71,7 +72,8 @@ typedef struct { grpc_channel* channel; grpc_error* error; void* tag; -} state_watcher; +}; +} // namespace static void delete_state_watcher(state_watcher* w) { grpc_channel_element* client_channel_elem = grpc_channel_stack_last_element( |