Index: tools/mac/exception_port_tool.cc |
diff --git a/tools/mac/exception_port_tool.cc b/tools/mac/exception_port_tool.cc |
index bc6b637fbc2493a39e5ee4ad4f524d8a27efbe84..ad0e4dc16bb08aeacfebdf808e06def4004126ae 100644 |
--- a/tools/mac/exception_port_tool.cc |
+++ b/tools/mac/exception_port_tool.cc |
@@ -186,7 +186,7 @@ void ShowBootstrapService(const std::string& service_name, |
MachSendRightPool* mach_send_right_pool) { |
mach_port_t service_port; |
kern_return_t kr = bootstrap_look_up( |
- bootstrap_port, const_cast<char*>(service_name.c_str()), &service_port); |
+ bootstrap_port, service_name.c_str(), &service_port); |
if (kr != BOOTSTRAP_SUCCESS) { |
BOOTSTRAP_LOG(ERROR, kr) << "bootstrap_look_up " << service_name; |
return; |
@@ -287,8 +287,7 @@ bool SetExceptionPort(const ExceptionHandlerDescription* description, |
0, strlen(kHandlerBootstrapColon), kHandlerBootstrapColon) == 0) { |
const char* service_name = |
description->handler.c_str() + strlen(kHandlerBootstrapColon); |
- kr = bootstrap_look_up( |
- bootstrap_port, const_cast<char*>(service_name), &service_port); |
+ kr = bootstrap_look_up(bootstrap_port, service_name, &service_port); |
if (kr != BOOTSTRAP_SUCCESS) { |
BOOTSTRAP_LOG(ERROR, kr) << "bootstrap_look_up " << service_name; |
return false; |