aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-07-07 13:10:23 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-07-07 13:10:23 -0700
commit990883990128f83284cb3d38f001195d13b80841 (patch)
treeb1c6ae2dd4ddb7ce78cc1a6167f2f3cf1ea26f24
parentfbf03c17355e65255862e91a938f4f5cfbcee51a (diff)
parent590092ba28d96ce5107b4e588654af77e414d0fd (diff)
Merge branch 'delayed-write' of github.com:ctiller/grpc into delayed-write
-rw-r--r--src/core/lib/iomgr/network_status_tracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/network_status_tracker.c b/src/core/lib/iomgr/network_status_tracker.c
index d3f0ea53f8..ccbe136db9 100644
--- a/src/core/lib/iomgr/network_status_tracker.c
+++ b/src/core/lib/iomgr/network_status_tracker.c
@@ -44,7 +44,7 @@ static endpoint_ll_node *head = NULL;
static gpr_mu g_endpoint_mutex;
static gpr_once g_once_init = GPR_ONCE_INIT;
-static void destroy_network_status_monitor() {
+static void destroy_network_status_monitor(void) {
if (head != NULL) {
gpr_log(GPR_ERROR,
"Memory leaked as all network endpoints were not shut down");
@@ -52,7 +52,7 @@ static void destroy_network_status_monitor() {
gpr_mu_destroy(&g_endpoint_mutex);
}
-static void initialize_network_status_monitor() {
+static void initialize_network_status_monitor(void) {
gpr_mu_init(&g_endpoint_mutex);
atexit(destroy_network_status_monitor);
// TODO(makarandd): Install callback with OS to monitor network status.