Update to enum_special_port_rights

This commit is contained in:
Karmaz95 committed 2024-12-17 03:21:09 +01:00
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;
} }