aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-05 14:51:22 +0100
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-12-05 15:07:51 +0100
commit59e13e4d2548c70b2e1001da24262ef17be8bc0b (patch)
tree0b079dc3757f5c48a6727b1a3dc2f62ddc14a23f /include/osmocom/core
parent7101ca27516e7ae1db4278bd03ee1a14f9d7fb20 (diff)
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
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/linuxlist.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/osmocom/core/linuxlist.h b/include/osmocom/core/linuxlist.h
index 2c3a0a4c..5ccd462d 100644
--- a/include/osmocom/core/linuxlist.h
+++ b/include/osmocom/core/linuxlist.h
@@ -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;
}