From 0ca91c8c83d0a399e6e45634fc8fdeca69fae569 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 9 May 2023 00:31:06 +0300 Subject: libps: Port to x86_64 Message-Id: <20230508213136.608575-12-bugaevc@gmail.com> --- libps/host.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libps/host.c') 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); -- cgit v1.2.3