summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libps/host.c8
-rw-r--r--libps/ps.h6
2 files changed, 7 insertions, 7 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;
diff --git a/libps/ps.h b/libps/ps.h
index 82375d97..905d53a1 100644
--- a/libps/ps.h
+++ b/libps/ps.h
@@ -1,8 +1,8 @@
/* Routines to gather and print process information.
- Copyright (C) 1995, 1996, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,99,2001 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Written by Miles Bader <miles@gnu.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -1026,7 +1026,7 @@ int proc_stat_list_spec_nominal (struct proc_stat_list *pp,
information on the data types these routines return. */
/* Return the current host port. */
-host_t ps_get_host ();
+mach_port_t ps_get_host ();
/* Return a pointer to basic info about the current host in HOST_INFO. Since
this is static global information we just use a static buffer. If a