summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ipc/ipc_hash.c14
-rw-r--r--ipc/ipc_hash.h5
2 files changed, 10 insertions, 9 deletions
diff --git a/ipc/ipc_hash.c b/ipc/ipc_hash.c
index 50024b5f..0aa40b81 100644
--- a/ipc/ipc_hash.c
+++ b/ipc/ipc_hash.c
@@ -1,25 +1,25 @@
-/*
+/*
* Mach Operating System
* Copyright (c) 1991,1990,1989 Carnegie Mellon University
* All Rights Reserved.
- *
+ *
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
- *
+ *
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
- *
+ *
* Carnegie Mellon requests users of this software to return to
- *
+ *
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
- *
+ *
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
@@ -136,8 +136,6 @@ ipc_hash_delete(
* Within each bucket, move-to-front is used.
*/
-typedef natural_t ipc_hash_index_t;
-
ipc_hash_index_t ipc_hash_global_size;
ipc_hash_index_t ipc_hash_global_mask;
diff --git a/ipc/ipc_hash.h b/ipc/ipc_hash.h
index 6db3f65b..5758e7a3 100644
--- a/ipc/ipc_hash.h
+++ b/ipc/ipc_hash.h
@@ -48,7 +48,10 @@ ipc_hash_init();
#include <mach_debug/hash_info.h>
-extern unsigned int ipc_hash_info(hash_info_bucket_t *, unsigned int);
+typedef natural_t ipc_hash_index_t;
+
+extern ipc_hash_index_t ipc_hash_info(hash_info_bucket_t *,
+ mach_msg_type_number_t);
#endif /* MACH_IPC_DEBUG */