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.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libihash/ihash.h') diff --git a/libihash/ihash.h b/libihash/ihash.h index 11092532..8f537edb 100644 --- a/libihash/ihash.h +++ b/libihash/ihash.h @@ -77,7 +77,7 @@ struct hurd_ihash size_t size; /* The offset of the location pointer from the hash value. */ - off_t locp_offset; + intptr_t locp_offset; /* The maximum load factor in percent. */ int max_load; @@ -97,7 +97,7 @@ typedef struct hurd_ihash *hurd_ihash_t; #define HURD_IHASH_MAX_LOAD_DEFAULT 80 /* The LOCP_OFFS to use if no location pointer is available. */ -#define HURD_IHASH_NO_LOCP INT_MIN +#define HURD_IHASH_NO_LOCP INTPTR_MIN /* The static initializer for a struct hurd_ihash. */ #define HURD_IHASH_INITIALIZER(locp_offs) \ @@ -110,7 +110,7 @@ typedef struct hurd_ihash *hurd_ihash_t; address of a hash value where a location pointer can be found. The location pointer must be of type hurd_ihash_locp_t and can be used for fast removal with hurd_ihash_locp_remove(). */ -void hurd_ihash_init (hurd_ihash_t ht, off_t locp_offs); +void hurd_ihash_init (hurd_ihash_t ht, intptr_t locp_offs); /* Destroy the hash table at address HT. This first removes all elements which are still in the hash table, and calling the cleanup @@ -124,7 +124,7 @@ void hurd_ihash_destroy (hurd_ihash_t ht); hurd_ihash_locp_t and can be used for fast removal with hurd_ihash_locp_remove(). If a memory allocation error occurs, ENOMEM is returned, otherwise 0. */ -error_t hurd_ihash_create (hurd_ihash_t *ht, off_t locp_offs); +error_t hurd_ihash_create (hurd_ihash_t *ht, intptr_t locp_offs); /* Destroy the hash table HT and release the memory allocated for it by hurd_ihash_create(). */ -- cgit v1.2.3