summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-03-21 02:18:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-03-21 02:18:39 +0000
commit8f92db17d2aa9c6f5a17a43e67dcd7f68f585e23 (patch)
tree8a4406fe4416181cca6fc58208f93d04da72921b
parent9d44865a7cddabc0d47ddea6895f652660aa90d2 (diff)
(ps_host_basic_info): Cast third arg to host_info.
(ps_host_sched_info): Likewise. (ps_host_load_info): Likewise.
-rw-r--r--libps/host.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libps/host.c b/libps/host.c
index 131ae41d..f966fc93 100644
--- a/libps/host.c
+++ b/libps/host.c
@@ -58,7 +58,8 @@ 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, &buf, &size);
+ error_t err = host_info(ps_get_host(), HOST_BASIC_INFO,
+ (host_info_t) &buf, &size);
if (err)
return err;
initialized = TRUE;
@@ -80,7 +81,8 @@ 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, &buf, &size);
+ error_t err = host_info(ps_get_host(), HOST_SCHED_INFO,
+ (host_info_t) &buf, &size);
if (err)
return err;
initialized = TRUE;
@@ -99,7 +101,8 @@ ps_host_load_info(host_load_info_t *info)
{
static host_load_info_data_t buf;
int size = sizeof(buf);
- error_t err = host_info(ps_get_host(), HOST_LOAD_INFO, &buf, &size);
+ error_t err = host_info(ps_get_host(), HOST_LOAD_INFO,
+ (host_info_t) &buf, &size);
if (err)
return err;