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/backup_poller.cc | |
parent | 63392f682e21543099926251b642cdcd0be2a17f (diff) |
Wrap duplicated-name definitions in anonymous namespace
Diffstat (limited to 'src/core/ext/filters/client_channel/backup_poller.cc')
-rw-r--r-- | src/core/ext/filters/client_channel/backup_poller.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ext/filters/client_channel/backup_poller.cc b/src/core/ext/filters/client_channel/backup_poller.cc index bfc549e709..4ee5e9c109 100644 --- a/src/core/ext/filters/client_channel/backup_poller.cc +++ b/src/core/ext/filters/client_channel/backup_poller.cc @@ -33,7 +33,8 @@ #define DEFAULT_POLL_INTERVAL_MS 5000 -typedef struct backup_poller { +namespace { +struct backup_poller { grpc_timer polling_timer; grpc_closure run_poller_closure; grpc_closure shutdown_closure; @@ -42,7 +43,8 @@ typedef struct backup_poller { bool shutting_down; // guarded by pollset_mu gpr_refcount refs; gpr_refcount shutdown_refs; -} backup_poller; +}; +} // namespace static gpr_once g_once = GPR_ONCE_INIT; static gpr_mu g_poller_mu; |