1 |
/* ihash.c - Integer-keyed hash table functions. |
/* ihash.c - Integer-keyed hash table functions. |
2 |
Copyright (C) 1993-1997, 2001, 2003, 2004 Free Software Foundation, Inc. |
Copyright (C) 1993-1997, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. |
3 |
Written by Michael I. Bushnell. |
Written by Michael I. Bushnell. |
4 |
Revised by Miles Bader <miles@gnu.org>. |
Revised by Miles Bader <miles@gnu.org>. |
5 |
Revised by Marcus Brinkmann <marcus@gnu.org>. |
Revised by Marcus Brinkmann <marcus@gnu.org>. |
329 |
ht->items[first_free].key = key; |
ht->items[first_free].key = key; |
330 |
|
|
331 |
if (ht->locp_offset != HURD_IHASH_NO_LOCP) |
if (ht->locp_offset != HURD_IHASH_NO_LOCP) |
332 |
*((hurd_ihash_locp_t) (((char *) value) + ht->locp_offset)) |
*((hurd_ihash_locp_t *) (((char *) value) + ht->locp_offset)) |
333 |
= &ht->items[first_free].value; |
= &ht->items[first_free].value; |
334 |
|
|
335 |
return 1; |
return 1; |