mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-09-29 00:01:44 +02:00
Update to enum_special_port_rights
This commit is contained in:
1 parent
2b125144ea
commit
5f2f010eb7
1 file changed
+1
-2
@@ -61,7 +61,7 @@ int main() {
|
|||||||
if (kr != KERN_SUCCESS) {
|
if (kr != KERN_SUCCESS) {
|
||||||
printf(" Error: %s (0x%x)\n", mach_error_string(kr), kr);
|
printf(" Error: %s (0x%x)\n", mach_error_string(kr), kr);
|
||||||
} else {
|
} else {
|
||||||
printf(" Port number: %d\n", special_port);
|
printf(" Port number: 0x%x\n", special_port);
|
||||||
|
|
||||||
mach_port_type_t port_type;
|
mach_port_type_t port_type;
|
||||||
kr = mach_port_type(task, special_port, &port_type);
|
kr = mach_port_type(task, special_port, &port_type);
|
||||||
@@ -85,4 +85,3 @@ int main() {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user