pointer conversion for libuv build. gen_stats_data.py to generate .cc

reviewable/pr12692/r4
Yash Tibrewal 8 years ago
parent 90adcf5e98
commit 19f0a909ac
  1. 2
      src/core/lib/iomgr/pollset_uv.cc
  2. 2
      tools/codegen/core/gen_stats_data.py

@ -65,7 +65,7 @@ void dummy_handle_close_cb(uv_handle_t *handle) { gpr_free(handle); }
void grpc_pollset_global_init(void) {
gpr_mu_init(&grpc_polling_mu);
dummy_uv_handle = gpr_malloc(sizeof(uv_timer_t));
dummy_uv_handle = (uv_timer_t *)gpr_malloc(sizeof(uv_timer_t));
uv_timer_init(uv_default_loop(), dummy_uv_handle);
grpc_pollset_work_run_loop = 1;
}

@ -255,7 +255,7 @@ with open('src/core/lib/debug/stats_data.h', 'w') as H:
print >>H
print >>H, "#endif /* GRPC_CORE_LIB_DEBUG_STATS_DATA_H */"
with open('src/core/lib/debug/stats_data.c', 'w') as C:
with open('src/core/lib/debug/stats_data.cc', 'w') as C:
# copy-paste copyright notice from this file
with open(sys.argv[0]) as my_source:
copyright = []

Loading…
Cancel
Save