diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2006-07-11 13:36:19 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2006-07-11 13:36:19 +0000 |
commit | 85b19fd8d03a57ba174cfc03153c8c255f6717d2 (patch) | |
tree | 6018e331587e3542f967866cfa965ff2ffaf6a72 /libihash | |
parent | f01c659b3e48b392347332469316a521f07e3f5e (diff) |
2006-07-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
* ihash.c (add_one): Cast VALUE with (hurd_ihash_locp_t *) instead of
(hurd_ihash_locp_t).
Diffstat (limited to 'libihash')
-rw-r--r-- | libihash/ChangeLog | 5 | ||||
-rw-r--r-- | libihash/ihash.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libihash/ChangeLog b/libihash/ChangeLog index 9b02e38a..22e40def 100644 --- a/libihash/ChangeLog +++ b/libihash/ChangeLog @@ -1,3 +1,8 @@ +2006-07-11 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * ihash.c (add_one): Cast VALUE with (hurd_ihash_locp_t *) instead of + (hurd_ihash_locp_t). + 2004-04-21 Marcus Brinkmann <marcus@gnu.org> * ihash.h (HURD_IHASH_ITERATE): Don't use increment operator in diff --git a/libihash/ihash.c b/libihash/ihash.c index 8fa9d514..05d53ced 100644 --- a/libihash/ihash.c +++ b/libihash/ihash.c @@ -1,5 +1,6 @@ /* ihash.c - Integer-keyed hash table functions. - Copyright (C) 1993-1997, 2001, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 1993-1997, 2001, 2003, 2004, 2006 + Free Software Foundation, Inc. Written by Michael I. Bushnell. Revised by Miles Bader <miles@gnu.org>. Revised by Marcus Brinkmann <marcus@gnu.org>. @@ -329,7 +330,7 @@ add_one (hurd_ihash_t ht, hurd_ihash_key_t key, hurd_ihash_value_t value) ht->items[first_free].key = key; if (ht->locp_offset != HURD_IHASH_NO_LOCP) - *((hurd_ihash_locp_t) (((char *) value) + ht->locp_offset)) + *((hurd_ihash_locp_t *) (((char *) value) + ht->locp_offset)) = &ht->items[first_free].value; return 1; |