summaryrefslogtreecommitdiff
path: root/libps/host.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:22:33 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:22:33 +0000
commit1ae4089c6d8e646aa83187dfb13d8cd32a47b31d (patch)
tree7b72a192cb746a608f6e17b1044a1f96af349338 /libps/host.c
parent0a1dd23a7f70dcf0899c37cb21f18b20e38ff598 (diff)
2002-05-07 Roland McGrath <roland@frob.com>
* host.c (ps_host_basic_info): int -> size_t (ps_host_basic_info, ps_host_load_info): Likewise. * ps.h: Update decls. (struct proc_stat): unsigned -> size_t for task_events_info_size, args_len, env_len. * procstat.c (summarize_thread_waits): Fix argument type.
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 8fd83400..9a46e008 100644
--- a/libps/host.c
+++ b/libps/host.c
@@ -1,6 +1,6 @@
/* Routines to get global host info.
- Copyright (C) 1995, 1996, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,2001,02 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
@@ -58,7 +58,7 @@ ps_host_basic_info (host_basic_info_t *info)
if (!initialized)
{
- int size = sizeof (buf);
+ size_t size = sizeof (buf);
error_t err = host_info (ps_get_host (), HOST_BASIC_INFO,
(host_info_t) &buf, &size);
if (err)
@@ -82,7 +82,7 @@ ps_host_sched_info (host_sched_info_t *info)
if (!initialized)
{
- int size = sizeof (buf);
+ size_t size = sizeof (buf);
error_t err = host_info (ps_get_host (), HOST_SCHED_INFO,
(host_info_t) &buf, &size);
if (err)
@@ -102,7 +102,7 @@ error_t
ps_host_load_info (host_load_info_t *info)
{
static host_load_info_data_t buf;
- int size = sizeof (buf);
+ size_t size = sizeof (buf);
error_t err = host_info (ps_get_host (), HOST_LOAD_INFO,
(host_info_t) &buf, &size);