summaryrefslogtreecommitdiff
path: root/libps/host.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-12-31 23:54:28 +0000
committerRoland McGrath <roland@gnu.org>2001-12-31 23:54:28 +0000
commit4e18c46294c6afe4f49a914e134afea097a1fdc1 (patch)
tree792575e5d8eb8d63daf645278c4a61aa4be3c2ad /libps/host.c
parentc356516a889d71e0e8b37e8ca5e7303fb3d1aa27 (diff)
2001-12-31 Roland McGrath <roland@frob.com>
* host.c (ps_get_host): Use mach_port_t instead of host_t. * ps.h: Update decl.
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;