From 85b19fd8d03a57ba174cfc03153c8c255f6717d2 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 11 Jul 2006 13:36:19 +0000 Subject: 2006-07-11 Samuel Thibault * ihash.c (add_one): Cast VALUE with (hurd_ihash_locp_t *) instead of (hurd_ihash_locp_t). --- libihash/ihash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libihash/ihash.c') 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 . Revised by Marcus Brinkmann . @@ -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; -- cgit v1.2.3