aboutsummaryrefslogtreecommitdiff
path: root/libps/host.c
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-09 00:31:06 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-10 02:23:41 +0200
commit0ca91c8c83d0a399e6e45634fc8fdeca69fae569 (patch)
tree6c7bb8eef9751413e2c56406e241722aa7c75439 /libps/host.c
parenta6386eda9c4de125e58985b19b6028c3f868de36 (diff)
downloadhurd-0ca91c8c83d0a399e6e45634fc8fdeca69fae569.tar.gz
hurd-0ca91c8c83d0a399e6e45634fc8fdeca69fae569.tar.bz2
hurd-0ca91c8c83d0a399e6e45634fc8fdeca69fae569.zip
libps: Port to x86_64
Message-Id: <20230508213136.608575-12-bugaevc@gmail.com>
Diffstat (limited to 'libps/host.c')
-rw-r--r--libps/host.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libps/host.c b/libps/host.c
index 3ef83cae..8b45639f 100644
--- a/libps/host.c
+++ b/libps/host.c
@@ -58,7 +58,7 @@ ps_host_basic_info (host_basic_info_t *info)
if (!initialized)
{
- size_t size = sizeof (buf);
+ mach_msg_type_number_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)
{
- size_t size = sizeof (buf);
+ mach_msg_type_number_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;
- size_t size = sizeof (buf);
+ mach_msg_type_number_t size = sizeof (buf);
error_t err = host_info (ps_get_host (), HOST_LOAD_INFO,
(host_info_t) &buf, &size);