mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-03-30 14:00:16 +02:00
This commit is contained in:
@@ -15,7 +15,7 @@ int main(int argc, char *argv[]) {
|
||||
// Get bootstrap port for service lookup
|
||||
mach_port_t port;
|
||||
kern_return_t kr = bootstrap_look_up(bootstrap_port,
|
||||
"xyz.hacktricks.mig",
|
||||
"com.crimson.message_service",
|
||||
&port);
|
||||
if (kr != KERN_SUCCESS) {
|
||||
printf("Service not found\n");
|
||||
|
||||
@@ -26,7 +26,7 @@ int main() {
|
||||
kern_return_t kr;
|
||||
|
||||
// Register our service with the bootstrap server
|
||||
kr = bootstrap_check_in(bootstrap_port, "xyz.hacktricks.mig", &port);
|
||||
kr = bootstrap_check_in(bootstrap_port, "com.crimson.message_service", &port);
|
||||
if (kr != KERN_SUCCESS) {
|
||||
printf("bootstrap_check_in() failed with code 0x%x\n", kr);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user