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.c | |
parent | 6f10d4f6fe25e37efabf45c3a6b5cf573f4bd66c (diff) |
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.c')
-rw-r--r-- | libihash/ihash.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |