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/lb_policy/pick_first/pick_first.cc | |
parent | 63392f682e21543099926251b642cdcd0be2a17f (diff) |
Wrap duplicated-name definitions in anonymous namespace
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc')
-rw-r--r-- | src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc b/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc index 0861261359..9ff40aa53c 100644 --- a/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +++ b/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc @@ -31,12 +31,14 @@ grpc_core::TraceFlag grpc_lb_pick_first_trace(false, "pick_first"); -typedef struct pending_pick { +namespace { +struct pending_pick { struct pending_pick* next; uint32_t initial_metadata_flags; grpc_connected_subchannel** target; grpc_closure* on_complete; -} pending_pick; +}; +} // namespace typedef struct { /** base policy: must be first */ |