aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/backup_poller.cc
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-01-05 11:09:12 -0800
committerGravatar GitHub <noreply@github.com>2018-01-05 11:09:12 -0800
commitdef31f952700aad3a9da280c003ebfb3e8e14087 (patch)
tree82cb70036fd8ad82365923a2bdf7fe6856dd3b39 /src/core/ext/filters/client_channel/backup_poller.cc
parent2b0ab320c12cb807cf05b3295b7017d0ccbf66f5 (diff)
parentae3e857eb60e9f6d195a73b7c576f065a2152780 (diff)
Merge pull request #13900 from vjpai/odr
Wrap duplicated-name definitions in anonymous namespace (except for iomgr)
Diffstat (limited to 'src/core/ext/filters/client_channel/backup_poller.cc')
-rw-r--r--src/core/ext/filters/client_channel/backup_poller.cc6
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;