diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2004-03-06 23:21:40 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2004-03-06 23:21:40 +0000 |
commit | 8fa843fb18e9a934e746dffaebca66670c603967 (patch) | |
tree | c2807714d1d03796d5448794fed25dab952c5ad6 /libihash/ihash.h | |
parent | 6f10d4f6fe25e37efabf45c3a6b5cf573f4bd66c (diff) | |
download | hurd-8fa843fb18e9a934e746dffaebca66670c603967.tar.gz hurd-8fa843fb18e9a934e746dffaebca66670c603967.tar.bz2 hurd-8fa843fb18e9a934e746dffaebca66670c603967.zip |
2004-03-07 Marcus Brinkmann <marcus@gnu.org>
* 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.
Diffstat (limited to 'libihash/ihash.h')
-rw-r--r-- | libihash/ihash.h | 8 |
1 files changed, 4 insertions, 4 deletions
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(). */ |