mirror of https://gerrit.osmocom.org/libosmocore
core/linuxlist: do not use 'new' as a parameter name
'new' is a reserved keyword in C++, so including this header from a C++ project (like osmo-pcu) breaks compilation. Let's rename it in the same way as it's already done in this file: add '_'. Change-Id: I7f7d9143edca75ce932601386a8766b0a62c0e24 Fixes: I8ef73a62fe9846ce45058eb21cf999dd3eed5741
This commit is contained in:
parent
7101ca2751
commit
59e13e4d25
|
@ -579,11 +579,11 @@ hlist_is_singular_node(struct hlist_node *n, struct hlist_head *h)
|
|||
* reference of the first entry if it exists.
|
||||
*/
|
||||
static inline void hlist_move_list(struct hlist_head *old,
|
||||
struct hlist_head *new)
|
||||
struct hlist_head *_new)
|
||||
{
|
||||
new->first = old->first;
|
||||
if (new->first)
|
||||
new->first->pprev = &new->first;
|
||||
_new->first = old->first;
|
||||
if (_new->first)
|
||||
_new->first->pprev = &_new->first;
|
||||
old->first = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue