[sr-dev] git:master: clist.h Rever last changes

Anca Vamanu anca.vamanu at 1and1.ro
Tue Jan 17 15:24:04 CET 2012


Module: sip-router
Branch: master
Commit: 5b2134e3d78c4874263e20581cafad9fb44391ab
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5b2134e3d78c4874263e20581cafad9fb44391ab

Author: Anca Vamanu <anca.vamanu at 1and1.ro>
Committer: Anca Vamanu <anca.vamanu at 1and1.ro>
Date:   Tue Jan 17 16:23:17 2012 +0200

clist.h Rever last changes

	Wrong casts

---

 clist.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/clist.h b/clist.h
index 124a83c..c96a93e 100644
--- a/clist.h
+++ b/clist.h
@@ -41,8 +41,8 @@
 /*! \brief circular list */
 #define clist_init(c, next, prev) \
 	do{ \
-		(c)->next=(struct str_hash_entry*)(void*)(c); \
-		(c)->prev=(struct str_hash_entry*)(void*)(c); \
+		(c)->next=(void*)(c); \
+		(c)->prev=(void*)(c); \
 	} while(0)
 
 
@@ -57,7 +57,7 @@
  */
 #define clist_insert_sublist(head, s, e, next, prev) \
 	do{ \
-		(s)->prev=(struct str_hash_entry*)(void*)(head); \
+		(s)->prev=(void*)(head); \
 		(e)->next=(head)->next; \
 		(e)->next->prev=(e); \
 		(head)->next=s;   \
@@ -91,8 +91,8 @@
  *  instead! */
 #define clist_rm_sublist(s, e, next, prev) \
 	do{\
-		(s)->prev->next=(struct str_hash_entry*)(e)->next;  \
-		(e)->next->prev=(struct str_hash_entry*)(s)->prev ; \
+		(s)->prev->next=(e)->next;  \
+		(e)->next->prev=(s)->prev ; \
 	}while(0)
 
 




More information about the sr-dev mailing list