From 8fa843fb18e9a934e746dffaebca66670c603967 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 6 Mar 2004 23:21:40 +0000 Subject: 2004-03-07 Marcus Brinkmann * ihash.h (HURD_IHASH_NO_LOCP): Change to INTPTR_MIN. (struct hurd_ihash): Change type of locp_offset from off_t to intptr_t. (hurd_ihash_init): Likewise in prototype. (hurd_ihash_create): Likewise in prototype. * ihash.c (hurd_ihash_init): Likewise in definition. (hurd_ihash_create): Likewise in definition. --- libihash/ihash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libihash/ihash.c') diff --git a/libihash/ihash.c b/libihash/ihash.c index 51cca82b..a6b96376 100644 --- a/libihash/ihash.c +++ b/libihash/ihash.c @@ -166,7 +166,7 @@ locp_remove (hurd_ihash_t ht, hurd_ihash_locp_t locp) /* Initialize the hash table at address HT. */ void -hurd_ihash_init (hurd_ihash_t ht, off_t locp_offs) +hurd_ihash_init (hurd_ihash_t ht, intptr_t locp_offs) { ht->nr_items = 0; ht->size = 0; @@ -199,7 +199,7 @@ hurd_ihash_destroy (hurd_ihash_t ht) /* Create a hash table, initialize it and return it in HT. If a memory allocation error occurs, ENOMEM is returned, otherwise 0. */ error_t -hurd_ihash_create (hurd_ihash_t *ht, off_t locp_offs) +hurd_ihash_create (hurd_ihash_t *ht, intptr_t locp_offs) { *ht = malloc (sizeof (struct hurd_ihash)); if (*ht == NULL) -- cgit v1.2.3