summaryrefslogtreecommitdiff
path: root/libps/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'libps/host.c')
-rw-r--r--libps/host.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libps/host.c b/libps/host.c
index 7f49bbc9..8fd83400 100644
--- a/libps/host.c
+++ b/libps/host.c
@@ -37,10 +37,10 @@
*/
/* Return the current host port. */
-host_t
+mach_port_t
ps_get_host ()
{
- static host_t host = MACH_PORT_NULL;
+ static mach_port_t host = MACH_PORT_NULL;
if (host == MACH_PORT_NULL)
host = mach_host_self ();
return host;
@@ -59,7 +59,7 @@ ps_host_basic_info (host_basic_info_t *info)
if (!initialized)
{
int size = sizeof (buf);
- error_t err = host_info (ps_get_host (), HOST_BASIC_INFO,
+ error_t err = host_info (ps_get_host (), HOST_BASIC_INFO,
(host_info_t) &buf, &size);
if (err)
return err;
@@ -83,7 +83,7 @@ ps_host_sched_info (host_sched_info_t *info)
if (!initialized)
{
int size = sizeof (buf);
- error_t err = host_info (ps_get_host (), HOST_SCHED_INFO,
+ error_t err = host_info (ps_get_host (), HOST_SCHED_INFO,
(host_info_t) &buf, &size);
if (err)
return err;