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/host_port.c | |
parent | 45b89fb11ca3cd524787aeba7a1270f744a1256c (diff) |
C++ compatibility fixes
Diffstat (limited to 'src/core/lib/support/host_port.c')
-rw-r--r-- | src/core/lib/support/host_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/support/host_port.c b/src/core/lib/support/host_port.c index f19bdbc835..bbd42c26e0 100644 --- a/src/core/lib/support/host_port.c +++ b/src/core/lib/support/host_port.c @@ -98,7 +98,7 @@ int gpr_split_host_port(const char *name, char **host, char **port) { } /* Allocate return values. */ - *host = gpr_malloc(host_len + 1); + *host = (char *)gpr_malloc(host_len + 1); memcpy(*host, host_start, host_len); (*host)[host_len] = '\0'; |