From 3496138ca428a7b2b69fe08e69fb544006a9a2cc Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Mon, 9 Jan 2012 10:01:56 +0000 Subject: Improve ipc hash/marequest init readability Use macros instead of raw numeric values. * ipc/ipc_hash.h (IPC_HASH_GLOBAL_SIZE): New macro. * ipc/ipc_hash.c (ipc_hash_init): Directly set the global hash table size to IPC_HASH_GLOBAL_SIZE. * ipc/ipc_marequest.h (IPC_MAREQUEST_SIZE): New macro. * ipc/ipc_marequest.c (ipc_marequest_init): Directly set the marequest hash table size to IPC_MAREQUEST_SIZE. --- ipc/ipc_marequest.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ipc/ipc_marequest.h') diff --git a/ipc/ipc_marequest.h b/ipc/ipc_marequest.h index eb3746d2..4f6f7584 100644 --- a/ipc/ipc_marequest.h +++ b/ipc/ipc_marequest.h @@ -70,6 +70,7 @@ typedef struct ipc_marequest { #define IMAR_NULL ((ipc_marequest_t) 0) +#define IPC_MAREQUEST_SIZE 16 extern void ipc_marequest_init(void); -- cgit v1.2.3