about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-02-27 20:00:41 +0000
committerRoland McGrath <roland@gnu.org>1999-02-27 20:00:41 +0000
commit4014b2cf3464ea1b70197446fa49e943323992b2 (patch)
tree74956cd483103c825a383219d6198c5fb88cbc52
parentc0cbcb6084609b97145c75bd2e321240ab82620d (diff)
downloadglibc-4014b2cf3464ea1b70197446fa49e943323992b2.tar.gz
glibc-4014b2cf3464ea1b70197446fa49e943323992b2.tar.xz
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.
-rw-r--r--sysdeps/mach/getsysstats.c11
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)