diff options
author | Roland McGrath <roland@gnu.org> | 1999-02-27 20:00:41 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-02-27 20:00:41 +0000 |
commit | 4014b2cf3464ea1b70197446fa49e943323992b2 (patch) | |
tree | 74956cd483103c825a383219d6198c5fb88cbc52 /sysdeps/mach/getsysstats.c | |
parent | c0cbcb6084609b97145c75bd2e321240ab82620d (diff) | |
download | glibc-4014b2cf3464ea1b70197446fa49e943323992b2.tar glibc-4014b2cf3464ea1b70197446fa49e943323992b2.tar.gz glibc-4014b2cf3464ea1b70197446fa49e943323992b2.tar.bz2 glibc-4014b2cf3464ea1b70197446fa49e943323992b2.zip |
1999-02-27 Roland McGrath <roland@baalperazim.frob.com>
* sysdeps/mach/getsysstats.c (__get_nprocs_conf, __get_nprocs,
__get_phys_pages): Cast &HBI to silence warning.
Diffstat (limited to 'sysdeps/mach/getsysstats.c')
-rw-r--r-- | sysdeps/mach/getsysstats.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sysdeps/mach/getsysstats.c b/sysdeps/mach/getsysstats.c index 904efaf480..235c316ef8 100644 --- a/sysdeps/mach/getsysstats.c +++ b/sysdeps/mach/getsysstats.c @@ -1,5 +1,5 @@ /* System dependent pieces of sysconf; Mach version - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 97, 99 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -31,7 +31,8 @@ __get_nprocs_conf () kern_return_t err; mach_msg_type_number_t cnt = HOST_BASIC_INFO_COUNT; - err = __host_info (__mach_host_self (), HOST_BASIC_INFO, &hbi, &cnt); + err = __host_info (__mach_host_self (), HOST_BASIC_INFO, + (host_info_t) &hbi, &cnt); if (err) return __hurd_fail (err); else if (cnt != HOST_BASIC_INFO_COUNT) @@ -48,7 +49,8 @@ __get_nprocs () kern_return_t err; mach_msg_type_number_t cnt = HOST_BASIC_INFO_COUNT; - err = __host_info (__mach_host_self (), HOST_BASIC_INFO, &hbi, &cnt); + err = __host_info (__mach_host_self (), HOST_BASIC_INFO, + (host_info_t) &hbi, &cnt); if (err) return __hurd_fail (err); else if (cnt != HOST_BASIC_INFO_COUNT) @@ -65,7 +67,8 @@ __get_phys_pages () kern_return_t err; mach_msg_type_number_t cnt = HOST_BASIC_INFO_COUNT; - err = __host_info (__mach_host_self (), HOST_BASIC_INFO, &hbi, &cnt); + err = __host_info (__mach_host_self (), HOST_BASIC_INFO, + (host_info_t) &hbi, &cnt); if (err) return __hurd_fail (err); else if (cnt != HOST_BASIC_INFO_COUNT) |