Browse code

clist.h Rever last changes

Wrong casts

Anca Vamanu authored on 17/01/2012 14:23:17
Showing 1 changed files
... ...
@@ -41,8 +41,8 @@
41 41
 /*! \brief circular list */
42 42
 #define clist_init(c, next, prev) \
43 43
 	do{ \
44
-		(c)->next=(struct str_hash_entry*)(void*)(c); \
45
-		(c)->prev=(struct str_hash_entry*)(void*)(c); \
44
+		(c)->next=(void*)(c); \
45
+		(c)->prev=(void*)(c); \
46 46
 	} while(0)
47 47
 
48 48
 
... ...
@@ -57,7 +57,7 @@
57 57
  */
58 58
 #define clist_insert_sublist(head, s, e, next, prev) \
59 59
 	do{ \
60
-		(s)->prev=(struct str_hash_entry*)(void*)(head); \
60
+		(s)->prev=(void*)(head); \
61 61
 		(e)->next=(head)->next; \
62 62
 		(e)->next->prev=(e); \
63 63
 		(head)->next=s;   \
... ...
@@ -91,8 +91,8 @@
91 91
  *  instead! */
92 92
 #define clist_rm_sublist(s, e, next, prev) \
93 93
 	do{\
94
-		(s)->prev->next=(struct str_hash_entry*)(e)->next;  \
95
-		(e)->next->prev=(struct str_hash_entry*)(s)->prev ; \
94
+		(s)->prev->next=(e)->next;  \
95
+		(e)->next->prev=(s)->prev ; \
96 96
 	}while(0)
97 97
 
98 98