aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-06-06 13:35:06 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-06-06 13:35:06 -0700
commitd0e4deb8ef30b6364c2f642c4ac7b259a2665780 (patch)
treeb4174a76d54c428e1d71dcd6eeae6ec471798ac2 /src/core/lib/iomgr
parent5258412df9ea2941e8f49f75693f6ac052c5caff (diff)
Change constness
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r--src/core/lib/iomgr/error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/error.c b/src/core/lib/iomgr/error.c
index 8143a85dea..d0a38c7fbd 100644
--- a/src/core/lib/iomgr/error.c
+++ b/src/core/lib/iomgr/error.c
@@ -510,14 +510,14 @@ grpc_error *grpc_os_error(const char *file, int line, int err,
#ifdef GPR_WINDOWS
grpc_error *grpc_wsa_error(const char *file, int line, int err,
const char *call_name) {
- char *utf8_message = gpr_format_message(err);
+ const char *utf8_message = gpr_format_message(err);
grpc_error *error = grpc_error_set_str(
grpc_error_set_str(
grpc_error_set_int(grpc_error_create(file, line, "OS Error", NULL, 0),
GRPC_ERROR_INT_WSA_ERROR, err),
GRPC_ERROR_STR_OS_ERROR, utf8_message),
GRPC_ERROR_STR_SYSCALL, call_name);
- gpr_free(utf8_message);
+ gpr_free((void *)utf8_message);
return error;
}
#endif