forked from Miroirs/x49gp
explicit cast
This commit is contained in:
parent
58287d660a
commit
0041e7546c
1 changed files with 5 additions and 5 deletions
10
src/list.h
10
src/list.h
|
@ -97,8 +97,8 @@ static inline void __list_del( struct list_head* prev, struct list_head* next )
|
|||
static inline void list_del( struct list_head* entry )
|
||||
{
|
||||
__list_del( entry->prev, entry->next );
|
||||
entry->next = LIST_POISON1;
|
||||
entry->prev = LIST_POISON2;
|
||||
entry->next = (struct list_head*)LIST_POISON1;
|
||||
entry->prev = (struct list_head*)LIST_POISON2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -391,8 +391,8 @@ static inline void __hlist_del( struct hlist_node* n )
|
|||
static inline void hlist_del( struct hlist_node* n )
|
||||
{
|
||||
__hlist_del( n );
|
||||
n->next = LIST_POISON1;
|
||||
n->pprev = LIST_POISON2;
|
||||
n->next = (struct hlist_node*)LIST_POISON1;
|
||||
n->pprev = (struct hlist_node**)LIST_POISON2;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -417,7 +417,7 @@ static inline void hlist_del( struct hlist_node* n )
|
|||
static inline void hlist_del_rcu( struct hlist_node* n )
|
||||
{
|
||||
__hlist_del( n );
|
||||
n->pprev = LIST_POISON2;
|
||||
n->pprev = (struct hlist_node**)LIST_POISON2;
|
||||
}
|
||||
|
||||
static inline void hlist_del_init( struct hlist_node* n )
|
||||
|
|
Loading…
Reference in a new issue