mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-19 18:03:47 +00:00
Don’t const_cast<char*> the service name parameter to
bootstrap_look_up(). This hasn’t been required since the 10.5 SDK, which is no longer supported. R=rsesek@chromium.org Review URL: https://codereview.chromium.org/999533002
This commit is contained in:
parent
42db629ee3
commit
a829f67f81
@ -186,7 +186,7 @@ void ShowBootstrapService(const std::string& service_name,
|
|||||||
MachSendRightPool* mach_send_right_pool) {
|
MachSendRightPool* mach_send_right_pool) {
|
||||||
mach_port_t service_port;
|
mach_port_t service_port;
|
||||||
kern_return_t kr = bootstrap_look_up(
|
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) {
|
if (kr != BOOTSTRAP_SUCCESS) {
|
||||||
BOOTSTRAP_LOG(ERROR, kr) << "bootstrap_look_up " << service_name;
|
BOOTSTRAP_LOG(ERROR, kr) << "bootstrap_look_up " << service_name;
|
||||||
return;
|
return;
|
||||||
@ -287,8 +287,7 @@ bool SetExceptionPort(const ExceptionHandlerDescription* description,
|
|||||||
0, strlen(kHandlerBootstrapColon), kHandlerBootstrapColon) == 0) {
|
0, strlen(kHandlerBootstrapColon), kHandlerBootstrapColon) == 0) {
|
||||||
const char* service_name =
|
const char* service_name =
|
||||||
description->handler.c_str() + strlen(kHandlerBootstrapColon);
|
description->handler.c_str() + strlen(kHandlerBootstrapColon);
|
||||||
kr = bootstrap_look_up(
|
kr = bootstrap_look_up(bootstrap_port, service_name, &service_port);
|
||||||
bootstrap_port, const_cast<char*>(service_name), &service_port);
|
|
||||||
if (kr != BOOTSTRAP_SUCCESS) {
|
if (kr != BOOTSTRAP_SUCCESS) {
|
||||||
BOOTSTRAP_LOG(ERROR, kr) << "bootstrap_look_up " << service_name;
|
BOOTSTRAP_LOG(ERROR, kr) << "bootstrap_look_up " << service_name;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user