diff options
author | Roland McGrath <roland@gnu.org> | 2002-06-24 00:34:54 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-17 23:50:18 +0200 |
commit | c47dc8d64319e2d7afa4345588896e9d2a1d7e66 (patch) | |
tree | 3321f13ab7262a3358d4e35d1e6996e3da4a33ec | |
parent | 5567333f528c8be2ce80a111e637652458f584b4 (diff) |
2002-06-23 Roland McGrath <roland@frob.com>
* ipc/ipc_hash.c (ipc_hash_index_t): Move typedef to ...
* ipc/ipc_hash.h: ... here.
(ipc_hash_info): Fix return and argument types in decl.
-rw-r--r-- | ipc/ipc_hash.c | 14 | ||||
-rw-r--r-- | ipc/ipc_hash.h | 5 |
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 */ |