X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..420ff9d9379a8d93f2c90f026a797bdea1eb4517:/libsecurity_utilities/lib/machrunloopserver.cpp?ds=sidebyside diff --git a/libsecurity_utilities/lib/machrunloopserver.cpp b/libsecurity_utilities/lib/machrunloopserver.cpp index cc0ed5c1..a4cb1284 100644 --- a/libsecurity_utilities/lib/machrunloopserver.cpp +++ b/libsecurity_utilities/lib/machrunloopserver.cpp @@ -48,7 +48,7 @@ MachRunLoopServer::MachRunLoopServer(const char *name, const Bootstrap &boot) { } -void MachRunLoopServer::run(size_t bufferSize, mach_msg_options_t options) +void MachRunLoopServer::run(mach_msg_size_t bufferSize, mach_msg_options_t options) { // allocate reply buffer mReplyMessage.setBuffer(bufferSize); @@ -73,7 +73,7 @@ MachRunLoopServer::~MachRunLoopServer() // Since we don't actually run our own runloop here, we can't well use standard // notifications to our own server port. So we use a CFMachPort facility instead. // -void MachRunLoopServer::notifyIfDead(Port port) const +void MachRunLoopServer::notifyIfDead(Port port, bool doNotify) const { if (CFMachPortRef cfPort = CFMachPortCreateWithPort(NULL, port, NULL, NULL, NULL)) CFMachPortSetInvalidationCallBack(cfPort, cfInvalidate); @@ -89,12 +89,12 @@ void MachRunLoopServer::cfInvalidate(CFMachPortRef cfPort, void *context) // // Reception callback // -void MachRunLoopServer::receive(Message &request) +void MachRunLoopServer::receive(const Message &request) { active().oneRequest(request); } -void MachRunLoopServer::oneRequest(Message &request) +void MachRunLoopServer::oneRequest(const Message &request) { if (!handle(request, mReplyMessage)) { // MIG dispatch failed secdebug("machrls", "MachRunLoopServer dispatch failed");