mirror of https://gerrit.osmocom.org/libosmocore
Use explicit type-casting in hlist_del() for C++ compatibility
/usr/local/include/osmocom/core/linuxlist.h:479:12: error: invalid conversion from ‘void*’ to ‘hlist_node*’ [-fpermissive] 479 | n->next = LLIST_POISON1; Fixes: I8ef73a62fe9846ce45058eb21cf999dd3eed5741 Change-Id: I75b0a5fe097562007c53987d8d41811e9f35798d
This commit is contained in:
parent
59e13e4d25
commit
77530b4619
|
@ -476,8 +476,8 @@ static inline void __hlist_del(struct hlist_node *n)
|
|||
static inline void hlist_del(struct hlist_node *n)
|
||||
{
|
||||
__hlist_del(n);
|
||||
n->next = LLIST_POISON1;
|
||||
n->pprev = LLIST_POISON2;
|
||||
n->next = (struct hlist_node *)LLIST_POISON1;
|
||||
n->pprev = (struct hlist_node **)LLIST_POISON2;
|
||||
}
|
||||
|
||||
/*! Delete the specified hlist_node from its list and initialize.
|
||||
|
|
Loading…
Reference in New Issue