From c47dc8d64319e2d7afa4345588896e9d2a1d7e66 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 24 Jun 2002 00:34:54 +0000 Subject: 2002-06-23 Roland McGrath * 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. --- ipc/ipc_hash.c | 14 ++++++-------- 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 -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 */ -- cgit v1.2.3