From 1ae4089c6d8e646aa83187dfb13d8cd32a47b31d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 May 2002 09:22:33 +0000 Subject: 2002-05-07 Roland McGrath * 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. --- libps/host.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libps/host.c') 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 @@ -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); -- cgit v1.2.3