diff options
author | Craig Tiller <ctiller@google.com> | 2017-05-11 13:36:42 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-05-11 13:36:42 -0700 |
commit | 61f86d9bd795a65d94df72a47fbd313d9084d8e7 (patch) | |
tree | 7ffcbc1d894408ba391797581be166963b748d15 /src/core/lib/support/thd_posix.c | |
parent | 45b89fb11ca3cd524787aeba7a1270f744a1256c (diff) |
C++ compatibility fixes
Diffstat (limited to 'src/core/lib/support/thd_posix.c')
-rw-r--r-- | src/core/lib/support/thd_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/support/thd_posix.c b/src/core/lib/support/thd_posix.c index 2fc23bffaf..16e645ad91 100644 --- a/src/core/lib/support/thd_posix.c +++ b/src/core/lib/support/thd_posix.c @@ -65,7 +65,7 @@ int gpr_thd_new(gpr_thd_id *t, void (*thd_body)(void *arg), void *arg, pthread_t p; /* don't use gpr_malloc as we may cause an infinite recursion with * the profiling code */ - struct thd_arg *a = malloc(sizeof(*a)); + struct thd_arg *a = (struct thd_arg *)malloc(sizeof(*a)); GPR_ASSERT(a != NULL); a->body = thd_body; a->arg = arg; |