bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] fix compiler warnings in hurd/libihash


From: Flavio Cruz
Subject: [PATCH] fix compiler warnings in hurd/libihash
Date: Tue, 29 Dec 2015 22:45:50 +0100
User-agent: Mutt/1.5.24 (2015-08-30)

---

libihash: Fix compiler warning.

* libihash/ihash.c (find_index): Cast item to struct _hurd_ihash_item.

diff --git a/libihash/ihash.c b/libihash/ihash.c
index 596f6ff..4bc54fd 100644
--- a/libihash/ihash.c
+++ b/libihash/ihash.c
@@ -114,7 +114,7 @@ find_index (hurd_ihash_t ht, hurd_ihash_key_t key)
 static inline void
 locp_remove (hurd_ihash_t ht, hurd_ihash_locp_t locp)
 {
-  struct _hurd_ihash_item *item = locp;
+  struct _hurd_ihash_item *item = (struct _hurd_ihash_item *) locp;
   if (ht->cleanup)
     (*ht->cleanup) (item->value, ht->cleanup_data);
   item->value = _HURD_IHASH_DELETED;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]