aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-08-01 11:36:14 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-08-01 11:36:14 -0700
commita0e278ee3f4f81829b331eba161a789dd5825e39 (patch)
tree6c60184fdb515bf2d56b125266faced2289497f2
parent87e06c84fdbffe89316cd52dc68ae5180b73b278 (diff)
fw-declare struct properly
-rw-r--r--src/core/ext/lb_policy/grpclb/grpclb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ext/lb_policy/grpclb/grpclb.c b/src/core/ext/lb_policy/grpclb/grpclb.c
index 5628040b70..d6db6de2b1 100644
--- a/src/core/ext/lb_policy/grpclb/grpclb.c
+++ b/src/core/ext/lb_policy/grpclb/grpclb.c
@@ -227,7 +227,7 @@ static void add_pending_ping(pending_ping **root, grpc_closure *notify) {
* glb_lb_policy
*/
typedef struct rr_connectivity_data rr_connectivity_data;
-typedef struct lb_client_data lb_client_data;
+struct lb_client_data;
static const grpc_lb_policy_vtable glb_lb_policy_vtable;
typedef struct glb_lb_policy {
/** base policy: must be first */
@@ -260,7 +260,7 @@ typedef struct glb_lb_policy {
pending_ping *pending_pings;
/** client data associated with the LB server communication */
- lb_client_data *lb_client;
+ struct lb_client_data *lb_client;
/** for tracking of the RR connectivity */
rr_connectivity_data *rr_connectivity;
@@ -553,7 +553,7 @@ static void glb_cancel_pick(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol,
gpr_mu_unlock(&glb_policy->mu);
}
-static grpc_call *lb_client_data_get_call(lb_client_data *lb_client);
+static grpc_call *lb_client_data_get_call(struct lb_client_data *lb_client);
static void glb_cancel_picks(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol,
uint32_t initial_metadata_flags_mask,
uint32_t initial_metadata_flags_eq) {